You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I am trying to serialize two entities with a simple manyToOne relationship using yaml configuration. I have my entities Address (name changed) to one People : (Annotation mapping is correct with a many to one in Address and the other way too)
namespave Vendor\MyBundle\Entity;
class Address {
private$id;
private$zipCode;
private$people;
}
class People {
private$id;
private$addresses;
}
When I get my Address entity and return it (api build with fosrestbundle) I get a 502 bad gateway. But when I transform my yaml into annotations, all works fine.
Did I miss someting? thanks for your anwsers!
The text was updated successfully, but these errors were encountered:
But we may have an error in our yml file. I just try on my computer (I was on my colleagues one) and it works fine... or the cache has been to long to generate...
Thanks if you may have another explanation that we can verify.
Hi I am trying to serialize two entities with a simple manyToOne relationship using yaml configuration. I have my entities Address (name changed) to one People : (Annotation mapping is correct with a many to one in Address and the other way too)
And my yml files :
When I get my Address entity and return it (api build with fosrestbundle) I get a 502 bad gateway. But when I transform my yaml into annotations, all works fine.
Did I miss someting? thanks for your anwsers!
The text was updated successfully, but these errors were encountered: