liip / liip/LiipTestFixturesBundle
Fixture refs and sqlite caching
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 178
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
It seems that loading fixtures and setting references are not working when the sqlite caching is enabled. It gives an array to string conversion error.
/app/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:3034
/app/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:491
/app/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php:78
/app/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php:105
/app/vendor/liip/test-fixtures-bundle/src/Services/DatabaseBackup/SqliteDatabaseBackup.php:68
/app/vendor/liip/test-fixtures-bundle/src/Services/DatabaseTools/ORMSqliteDatabaseTool.php:52
/app/vendor/liip/test-fixtures-bundle/src/Test/FixturesTrait.php:110
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the fixture flow through src/Services/DatabaseBackup/SqliteDatabaseBackup.php and src/Services/DatabaseTools/ORMSqliteDatabaseTool.php, then reproduce loading fixtures with sqlite caching and references enabled. Trace the array-to-string conversion shown through ProxyReferenceRepository.php and confirm that fixture references load without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, sqlite, symfony
- Domain
- databases, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100