Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


ProxyReferenceRepository fatal error when serializing object without getId() method #93

johnkary opened this Issue · 4 comments

3 participants

John Kary David de Boer Guilherme Blanco
John Kary

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:

David de Boer

I'm having the same problem. Any progress on this?

Guilherme Blanco

Will look into this one tomorrow. =)

Guilherme Blanco

Fixed as of 8ffac1c

John Kary

Very nice, thanks Guilherme!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.