Skip to content

Commit 73cfcc4

Browse files
committed
Format 2
1 parent 15d588a commit 73cfcc4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/AttributeResolver.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,12 @@ protected function resolveProperty(
350350
}
351351
$attribute->setPhpType($relatedClassName . '[]');
352352
$this->relations[$property->getName()] =
353-
Yii::createObject(
354-
AttributeRelation::class,
355-
[static::relationName($property->getName(), $property->fkColName), $relatedTableName, $relatedClassName]
356-
)
357-
->asHasMany([Inflector::camel2id($this->schemaName, '_') . '_id' => $this->componentSchema->getPkName()])
358-
->setInverse(Inflector::variablize($this->schemaName));
353+
Yii::createObject(
354+
AttributeRelation::class,
355+
[static::relationName($property->getName(), $property->fkColName), $relatedTableName, $relatedClassName]
356+
)
357+
->asHasMany([Inflector::camel2id($this->schemaName, '_') . '_id' => $this->componentSchema->getPkName()])
358+
->setInverse(Inflector::variablize($this->schemaName));
359359
return;
360360
}
361361
if ($this->componentSchema->isNonDb() && $attribute->isReference()) {

0 commit comments

Comments
 (0)