We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52f2320 commit b037265Copy full SHA for b037265
tests/fixtures/non-db.php
@@ -21,7 +21,7 @@
21
'catsCount' => (new Attribute('catsCount', ['phpType' => 'int', 'dbType' => 'integer'])),
22
'summary' => (new Attribute('summary', ['phpType' => 'string', 'dbType' => 'text'])),
23
'parentPet' => (new Attribute('parentPet', ['phpType' => 'int', 'dbType' => 'bigint']))
24
- ->asReference('Pet')->setDescription('A Pet'),
+ ->asReference('Pet')->setDescription('A Pet')->setFakerStub('$faker->randomElement(\app\models\Pet::find()->select("id")->column())'),
25
],
26
'relations' => [
27
'parentPet' => new AttributeRelation('parentPet', 'pets', 'Pet', 'hasOne', ['id' => 'parentPet_id']),
0 commit comments