I'm building REST API for my system with complex entities that have many relationship with each other. I'm looking for a way to automatically return entities with one-to-many or many-to-many relationship or I have to do it by hand. Any suggestion? Thanks for your help
JMS/Serializer can serialize retations if you set Array or ArrayCollection type. You can install it with php composer.phar require jms/serializer-bundle. Read more at documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With