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 display custom properties in ObjectSelect Options #43

Open
boedociclon opened this issue Nov 13, 2015 · 0 comments
Open

how to display custom properties in ObjectSelect Options #43

boedociclon opened this issue Nov 13, 2015 · 0 comments

Comments

@boedociclon
Copy link

Hello, I integrated your CsnUser Module in my application; I have a Customer Entity which has a OneToOne association with CsnUser Entity. I would like to show properties username and role inside dropdown option using just annotation. I figured out I could add a method __ToString() to CsnUser Class that returns custom string and add annotation @annotation\Options({"target_class":"CsnUser\Entity\Role","property": "" }) to my Customer Class but I would prefer not to alter CsnUser Module code.
Do you have any suggestion to obtain same pourpose without alternig original code?
Thank you very much for helping.
Best regards.

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

1 participant