You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To populate xPDO objects, create a new populator class (using a generator instance as parameter), then list the class and number of all the objects that must be generated. To launch the actual data population, call the execute() method.
19
+
To populate xPDO objects, create a new populator class (using a generator instance as first parameter, and a valid xPDO instance as second parameter), then list the class and number of all the objects that must be generated. To launch the actual data population, call the execute() method.
20
20
21
21
Here is an example showing how to populate 5 `modUser` and 10 `modResource` objects:
22
22
23
23
```php
24
24
<?php
25
25
$generator = \Faker\Factory::create();
26
-
$populator = new \SpringbokAgency\Faker\ORM\xPDO\Populator($generator);
26
+
$populator = new \SpringbokAgency\Faker\ORM\xPDO\Populator($generator, $xpdo);
Copy file name to clipboardExpand all lines: tests/test_package/core/components/faker-xpdo-orm-adapter/model/schema/faker-xpdo-orm-adapter.mysql.schema.xml
0 commit comments