-
Notifications
You must be signed in to change notification settings - Fork 157
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
Extends your entities? #425
Comments
Hello, anybody can help me on this? Any idea?! |
Hi! I've done that for Section entity. If it still doesn't work, you can override For type extension, don't forget to override form's template, located at |
Any news on this? I am also trying to override the BlockType but its not working
I have already create new BlockType, But when I added this entry form: App\Form\Block\Type\BlockType I got following error |
I achieved it by adding my own patches using this: https://packagist.org/packages/cweagans/composer-patches |
@yanlep The way you extended the Block entity is good (apart from MappedSuperclass), did you override form's template as @pierre-vassoilles mentioned? |
Hello, I'm using your "CMS plugin for Sylius applications" and I would like to extends your "Block" entity to add some properties (like displaying dates).
In Block.orm.yml file I see "BitBag\SyliusCmsPlugin\Entity\Block" has the type: mappedSuperclass
So I imagine I can extends it on my own project entity and add an TypeExtension but how?
I tried to define my class like this:
and define this in yml:
but it doesn't work :-/
How can achieve to add other fields on your entities?
Can you please help me on this?
Thanks by Advance.
Yannick Lepetit
The text was updated successfully, but these errors were encountered: