-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DDC-1942: problem with serialize/merging entities with aggregation #2613
Comments
Comment created by gabrielnn77: if i call $em->find() i still not able to view the object
//----------------------------------------
|
Comment created by amarquez: i have the same problem |
Comment created by @beberlei: formatted code |
Comment created by @beberlei: Can you paste a var_dump() of class1 after you call detach and before serialize and then another one after you called unserialize? Also a var_dump of the serialized string $aux_s |
Comment created by gabrielnn77: var_dump in attached file |
Comment created by gabrielnn77: i found that if the class has more than two levels have the same problem
otherwise doctrine insert new registers in database for class3 |
Comment created by gsesia: I have same problems |
Comment created by gabrielnn77: if i declare in the entity annotation fetch="EAGER" works fine |
Comment created by valentin: I have the same problem. From what I saw, if I use fetch: EAGER, all my distinct entities are merged indeed, but if a specific entity (instance) is in two different collections, only one collection will have this instance. So, any news about this bug ? |
Comment created by valentin: I'm still trying to get my stuff works, and I'm now pretty sure that as soon as an object have to be merge more than once in a row (because of cascade associations), it end up being only in one collection, and lost for other entities. I hope this could help. |
Comment created by gabrielnn77: How do I have to initialize the objects? |
Comment created by @Ocramius: [~gabrielnn77] by calling any method that is not |
Comment created by @Ocramius: [~gabrielnn77] news on this one? Managed to verify it? |
Issue was closed with resolution "Duplicate" |
Comment created by @doctrinebot: A related Github Pull-Request [GH-585] was closed: |
Comment created by @doctrinebot: |
Comment created by @doctrinebot: |
Jira issue originally created by user gabrielnn77:
i have these two entities:
namespace nuevo_paquete;
Clase_01 have two aggregation association with Clase_03
when serialize an object of class Clase_01 and then unserialize, i lost the reference to the object of class Clase_03
but i can see Clase_03_1
ej:
when i call get_clase_03() before detach the object, i can see the object Clase_03
ej:
The text was updated successfully, but these errors were encountered: