Skip to content
This repository has been archived by the owner on Aug 28, 2018. It is now read-only.

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

Open
luispabon opened this issue Nov 19, 2015 · 7 comments
Open

Comments

@luispabon
Copy link

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.

@khepin
Copy link
Owner

khepin commented Nov 20, 2015

Is that on a newer version of Doctrine?

@luispabon
Copy link
Author

The latest as of yesterday 👍

@luispabon
Copy link
Author

Stable, of course.

@khepin
Copy link
Owner

khepin commented Nov 20, 2015

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?

@luispabon
Copy link
Author

I'll look into it.

@khepin
Copy link
Owner

khepin commented Nov 20, 2015

👍

@earithramir
Copy link

earithramir commented Jun 24, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants