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

Override entity #27

Open
Htb24 opened this issue Jun 16, 2014 · 2 comments
Open

Override entity #27

Htb24 opened this issue Jun 16, 2014 · 2 comments

Comments

@Htb24
Copy link

Htb24 commented Jun 16, 2014

Hello.

I overrided your bundle with my userforumBundle, and it works perfectly.

I created my own entity for add a slug's field for overide your topic entity, but doctrine command line create my own table ""forum_topic" with the slug field added, but the table "cc_forum_topic" is also create!

Do you have an exemple for override entity correctly?

Thank you so much.

Sorry for my bad english.

@drewprod
Copy link

hi,
Same problem here ;-( we can't override fields definition or table's names to match our coding standard.

A solution : "Inheritance Mapping superclass" (http://docs.doctrine-project.org/projects/doctrine-orm/en/2.1/reference/inheritance-mapping.html#mapped-superclasses)
=> like FOS*Bundle

thanks and best regards.

ps: please use annotations :-).

@topwebstudio
Copy link

+1 on how to override entity in order to add more fields.

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

3 participants