Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to exclude fields from the associated objects? #173

Closed
isqad opened this issue Sep 13, 2012 · 1 comment
Closed

How to exclude fields from the associated objects? #173

isqad opened this issue Sep 13, 2012 · 1 comment

Comments

@isqad
Copy link

isqad commented Sep 13, 2012

I have a comment Entity with user field:

//...
/**
 * @ORM\ManyToOne(targetEntity="User")
 * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
 */
protected $user;
//...

I need to serialize the object comment that in the user field can be only certain fields by me. For example, I would like to delete the password field. How to do it, tell me? I did not find in the documentation.

@schmittjoh
Copy link
Owner

Please ask usage questions on the mailing list. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants