cakephp-fixture-factories icon indicating copy to clipboard operation
cakephp-fixture-factories copied to clipboard

CakePHP Fixture Factories

Results 21 cakephp-fixture-factories issues
Sort by recently updated
recently updated
newest added

The docs are a bit confusing to me https://github.com/vierge-noire/cakephp-fixture-factories/blob/main/docs/associations.md They link to https://book.cakephp.org/4/en/orm/associations.html (v4 btw, not v5) - in main. As in Cake, I would assume all relations to be...

In v3.1, we want to introduce the: * `getPersistedResultSet` * `getResultSet` methods: These will return a result set , that is a collection of entities, and are bound to replace...

enhancement

When I use a Factory to prepare some fixture data in a static data provider, the records are created in the default database rather than the testing database This is...

Runing `vendor/bin/phpunit tests/TestCase/Model` passes, but running `vendor/bin/phpunit tests/TestCase` fails. The error message is: ``` There was 1 error: 1) App\Test\TestCase\Model\Table\ItemsTableTest::testFindForPartner CakephpFixtureFactories\Error\PersistenceException: Error in Factory App\Test\Factory\InvoiceFactory. Message: SQLSTATE[23000]: Integrity constraint violation:...

In CakePHP 4.2 and Fixture Factory 2.4. I am fairly certain you can reproduce this when using `persist()` to get the entity as well. **Steps to reproduce** ```php $foo =...

I've been working on improving performance of a test suite and noticed seeing this for each test: ``` 2023-03-09 12:56:31 Debug: connection=test duration=4402 rows=0 CALL TruncateDirtyTables(); ``` Coming from `MysqlTriggerBasedTableSniffer::truncateDirtyTables`...

Hi, I have an article with translated name and description. I use the shadow strategy. If I want to create multiple translations for an article, I need to pass this:...

https://github.com/vierge-noire/cakephp-fixture-factories/blob/a808936ff57761890270112cca838bf1265047cf/src/Factory/BaseFactory.php#L555-L569

enhancement

Hi there, still using Fixture Factories and loving it after [nearly 2 years](https://github.com/vierge-noire/cakephp-fixture-factories/issues/187). I have a suggestion for a quality-of-life improvement. I believe this would resolve some very tricky edge...