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
I'm using doctrine/data-fixtures as part of using ICBaseTestBundle. I'm using ICBaseTestBundle's getFixtureList() functionality to load some fixtures prior to executing a test case.
The entity whose fixtures I'm loading does not have a getId() method because my primary key field is mapped to another property (e.g. private $code; instead of private $id;), so it doesn't make sense to expose a getId() method because that means nothing to my entity.
Could ProxyReferenceRepository use another way to find the primary key(s) used by the given entity (maybe via UOW) instead of calling getId()?
On a slightly related note, I was going to try writing a failing test for this but ran into the test suite exhausting available memory above memory_limit=2G on test Doctrine\Tests\Common\DataFixtures\DependentFixtureTest::test_orderFixturesByDependencies_circularReferencesMakeMethodThrowCircularReferenceException using PHPUnit 3.7.9 installed via PEAR w/o xDebug. PHPUnit 3.7.14 installed via composer had issues with using Composer dev-master's autoloader.
Issue exists as of eef10f6
Issue appears to occur here:
I'm using doctrine/data-fixtures as part of using ICBaseTestBundle. I'm using ICBaseTestBundle's
getFixtureList()
functionality to load some fixtures prior to executing a test case.The entity whose fixtures I'm loading does not have a
getId()
method because my primary key field is mapped to another property (e.g.private $code;
instead ofprivate $id;
), so it doesn't make sense to expose agetId()
method because that means nothing to my entity.Could
ProxyReferenceRepository
use another way to find the primary key(s) used by the given entity (maybe via UOW) instead of callinggetId()
?On a slightly related note, I was going to try writing a failing test for this but ran into the test suite exhausting available memory above memory_limit=2G on test
Doctrine\Tests\Common\DataFixtures\DependentFixtureTest::test_orderFixturesByDependencies_circularReferencesMakeMethodThrowCircularReferenceException
using PHPUnit 3.7.9 installed via PEAR w/o xDebug. PHPUnit 3.7.14 installed via composer had issues with using Composer dev-master's autoloader.Issue exists as of eef10f6
Issue appears to occur here:
data-fixtures/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php
Line 67 in eef10f6
The text was updated successfully, but these errors were encountered: