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 extend model classes? #120

Open
faridmovsumov opened this issue Jul 14, 2016 · 1 comment
Open

How to extend model classes? #120

faridmovsumov opened this issue Jul 14, 2016 · 1 comment

Comments

@faridmovsumov
Copy link

Can I extend model classes?

@eko
Copy link
Collaborator

eko commented Jul 14, 2016

Hi @faridmovsumov,

As written in the documentation (see: https://github.com/ekino/EkinoWordpressBundle#override), you can override an entity using the following bundle configuration:

ekino_wordpress:
    services:
        post:
            class: MyApp\AppBundle\Entity\Post

This way, you can specify your own post entity for instance that will extend the bundle one.

Can you please close this issue if that's ok for you?

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