You can clone with
HTTPS or Subversion.
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: https://github.com/doctrine/data-fixtures/blob/eef10f6b92706bdae2841a8fdeb45ad8999b15b3/lib/Doctrine/Common/DataFixtures/ProxyReferenceRepository.php#L67
I'm having the same problem. Any progress on this?
Will look into this one tomorrow. =)
Fixed as of 8ffac1c
Very nice, thanks Guilherme!