JMS Serializer ignores mappings for Knp Paginator
I have problem with exclusion of some KNP Paginator properties with JMS Serializer. First, this is included in composer.json ... "jms/serializer-bundle": "~0.13", "knplabs/knp-paginator-bundle": "2.4.*@dev", ... I'm paginating CrmContacts entity and exclusion policy for that entity works well. I also added yml file for KNP Paginator like this: config.yml jms_serializer: metadata: directories: KNPPB: namespace_prefix: 'Knp\\Bundle\\PaginatorBundle' path: %kernel.root_dir%/Resources/serializer/Knp inside app/Resources/serializer/Knp folder I've created Pagination.SlidingPagination.yml: Knp