B
B
BonBon Slick2018-02-10 13:54:41
Doctrine ORM
BonBon Slick, 2018-02-10 13:54:41

Why access_type and accessor in serializer?

serializer of Entity, example:

owner:
      type: "App\\Domain\\User\\User"
      serialized_name: owner
      groups: ['ad']
    typeTextPresentation:
      type: string
      access_type: public_method
      serialized_name: typeTextPresentation
      groups: ['ad']
      accessor:
        getter: typeTextPresentation

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question