File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,8 @@ protected function resolveProperty(
259259 ->setSize ($ fkProperty ->getMaxLength ())
260260 ->setDescription ($ property ->getRefSchema ()->getDescription ())
261261 ->setDefault ($ fkProperty ->guessDefault ())
262- ->setLimits ($ min , $ max , $ fkProperty ->getMinLength ());
262+ ->setLimits ($ min , $ max , $ fkProperty ->getMinLength ())
263+ ->setFakerStub ($ this ->guessFakerStub ($ attribute , $ property ));
263264
264265 $ relation = Yii::createObject (
265266 AttributeRelation::class,
@@ -340,9 +341,6 @@ protected function resolveProperty(
340341 }
341342 $ attribute ->setPhpType ($ relatedClassName . '[] ' );
342343
343- $ this ->attributes [$ property ->getName ()] =
344- $ attribute ->setFakerStub ($ this ->guessFakerStub ($ attribute , $ property )); // TODO
345-
346344 $ this ->relations [$ property ->getName ()] =
347345 Yii::createObject (
348346 AttributeRelation::class,
Original file line number Diff line number Diff line change @@ -390,7 +390,6 @@ public function aElementFaker($data): ?string
390390 ];
391391
392392 $ schema = new Schema ($ compoSchemaData );
393-
394393 if ($ this ->config ) {
395394 $ rc = new ReferenceContext ($ this ->config ->getOpenApi (), Yii::getAlias ($ this ->config ->openApiPath ));
396395 $ schema ->setReferenceContext ($ rc );
You can’t perform that action at this time.
0 commit comments