Closed takeit closed 5 years ago
@takeit Is this the only thing that prevent you to use the data-fixture with the ODM ?
@mikeSimonson I use it with PHPCR ODM in project I work on anyway. Even without the references that't not a blocker for me atm and it doesn't prevent me to use it.
@takeit Can you add a test for it ?
@mikeSimonson This PR seems obsolete: https://github.com/doctrine/data-fixtures/blob/3a1e2c3c600e615a2dffe56d4ca0875cc5233e0a/lib/Doctrine/Common/DataFixtures/ReferenceRepository.php#L68
Thanks @kojiDev! This was indeed fixed in #255. Closing here.
Doing:
throws an exception:
when using references with PHPCR ODM documents.
The PHPCR ODM UnitOfWork class doesn't have the method
getDocumentIdentifier
. There isgetDocumentId
instead. MongoDB ODM seems to usegetDocumentIdentifier
method in its UnitOfWork class but not in PHPCR.Please, let me know if its enough.