KhepinYamlFixturesBundle icon indicating copy to clipboard operation
KhepinYamlFixturesBundle copied to clipboard

X-to-many relationships not working on autogenerated Doctrine entities

Open luispabon opened this issue 9 years ago • 7 comments

The autogen'd methods on a doctrine model are as follows:

addXxx, removeXxx, getXxxs

We shouldn't need to modify these entities adding a setXxxs to make it work with the bundle.

luispabon avatar Nov 19 '15 14:11 luispabon

Is that on a newer version of Doctrine?

khepin avatar Nov 20 '15 18:11 khepin

The latest as of yesterday :+1:

luispabon avatar Nov 20 '15 18:11 luispabon

Stable, of course.

luispabon avatar Nov 20 '15 18:11 luispabon

Alright, I can't test it and older versions of Doctrine I was using were using setXxx Would you be able to provide a fix and the tests for it?

khepin avatar Nov 20 '15 19:11 khepin

I'll look into it.

luispabon avatar Nov 20 '15 19:11 luispabon

:+1:

khepin avatar Nov 20 '15 19:11 khepin

Any progress on this front, using version Symfony 2.8.4-DEV and doctrine 1.2 and bundle is importing one-to-many as one-to-one relation (setRelation instead of addRelation) ? Is there a version in which this is fixed?

i'm using khepin/KhepinYamlFixturesBundle 1.0.0.

earithramir avatar Jun 24 '16 12:06 earithramir