Skip to content

The identifier id is missing for a query of ... #71

Open
@ahmed-bhs

Description

@ahmed-bhs

Every thing was working great, until I enabled the cache_db configuration:

liip_test_fixtures:
    cache_db:
        sqlite: liip_test_fixtures.services_database_backup.sqlite

This is the stack trace of the exception I'm getting, any help would be appreciated:


1) App\Tests\Api\EmployeeTest::testExportCollection
Doctrine\ORM\ORMException: The identifier id is missing for a query of App\Entity\Evaluation\Employee
/builds/oppbtp/oppbtp_qcm_elec_api/vendor/doctrine/orm/lib/Doctrine/ORM/ORMException.php:309
/builds/oppbtp/oppbtp_qcm_elec_api/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:488
/builds/oppbtp/oppbtp_qcm_elec_api/var/cache/test/ContainerWI1DfLB/EntityManager_9a5be93.php:142
/builds/oppbtp/oppbtp_qcm_elec_api/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php:82
/builds/oppbtp/oppbtp_qcm_elec_api/vendor/doctrine/data-fixtures/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php:115
/builds/oppbtp/oppbtp_qcm_elec_api/vendor/liip/test-fixtures-bundle/src/Services/DatabaseBackup/SqliteDatabaseBackup.php:68
/builds/oppbtp/oppbtp_qcm_elec_api/vendor/liip/test-fixtures-bundle/src/Services/DatabaseTools/ORMSqliteDatabaseTool.php:52
/builds/oppbtp/oppbtp_qcm_elec_api/vendor/liip/test-fixtures-bundle/src/Test/FixturesTrait.php:86
/builds/oppbtp/oppbtp_qcm_elec_api/src/Test/CustomApiTestCase.php:51

This a small vision about my dependencies:

doctrine/data-fixtures                       1.4.2   Data Fixtures for al...
doctrine/doctrine-fixtures-bundle            3.3.0   Symfony DoctrineFixt...
liip/test-fixtures-bundle                    1.7.0   This bundles enables.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions