Skip to content

manage entity with file #30

@yusleyorea

Description

@yusleyorea

I'm trying to manipulate an attached entity representing the files with a document entity, but can not find how to do it from the documentation in http://lakion.com/lionframe. Is there any tutorial or example where it can guide me.

Another thing, I'm trying to set the serialization of an entity that inherits from FOSUser model, to not display the password field among others, but it does not work either :-( looks so my yml:

Custom\UserBundle\Entity\User:
  exclusion_policy: ALL
  xml_root_name: user
  properties:
      id:
          expose: true
          type: integer
          xml_attribute: true
      email:
          expose: true
          type: string
      displayname:
          expose: true
          type: string
      password:
          expose: false
      salt:
          expose: false
      email_canonical:
          expose: false
      username_canonical:
          expose: false
      username:
          expose: false
      credentials_expired:
          expose: false
      expired:
          expose: false
      locked:
          expose: false

I am also try removing filds with expose false, but it always get all fields from the both entities.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions