I have a simple class which acts as entity in an own bundle (core) and want 
to use that class as doctrine entity. The bundle doesn't contain any 
information about mapping of that class or similar.

I need to extend that class, because another constructor logic is needed. 
This is done in the bundle web. I have created a mapping for the bundle 
containing the extended class, the mapping file is called **Doc.orm.yml**.

    Acme\WebBundle\Entity\Doc:
      type: entity
      table: docs
      id:
        id:
          type: integer
          generator:
            strategy: AUTO
      
      fields:
        ...

Running the app results into

> Class "Acme\CoreBundle\Entity\Doc" is not a valid entity or mapped super 
class.

The mentioned class is the unmapped class from the core bundle.

How can I extend an unmapped class and use it with doctrine?

Thanks for any hints.

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to