Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants