-
Notifications
You must be signed in to change notification settings - Fork 17
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
is it possible to use entitytype #70
Comments
Hi @t-n-y, Yes, it's possible to use the Example with a "Page" entity from another beautiful plugin: $this->addWithDefaultCheckbox(
$builder, 'page', EntityType::class, [
'class' => Page::class,
'choice_label' => 'title',
// ...
]
);
$pageToCodeTransformer = new ReversedTransformer(new ResourceToIdentifierTransformer($this->pageRepository, 'code'));
$builder->get('page')->addModelTransformer($pageToCodeTransformer); |
Hi @delyriand, Thank you for the quick response. |
@t-n-y, That's right! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to use an entityType, to set a collection of other entity in the configuration ?
I am looking a way to do that but can't find any exemple
The text was updated successfully, but these errors were encountered: