bug #4037 fix: #3967 Use symfony PropertyAccess to get value of Entity Primary Key (sarim)
bug #4037 fix: #3967 Use symfony PropertyAccess to get value of Entity Primary Key (sarim)

This PR was merged into the 3.0.x-dev branch.

Discussion
----------

fix: #3967 Use symfony PropertyAccess to get value of Entity Primary Key

As discussed in linked issue, current implementation of getting the value of primary key in EntityDto fails when using Doctrine Inheritance. Here I used PropertyAccess to get the value, which uses getter method to get value. This works with Doctrine Inheritance. And IMO this is the cleaner way to do it.

Commits
-------

b21e2b3f Use symfony PropertyAccess to get value of Entity Primary Key, fixes #3967

javiereguiluz/EasyAdminBundle,javiereguiluz/EasyAdminBundle