[DDC-1579] MappedSuperClass and inheritance problem with console generate:entities command Created: 05/Jan/12 Updated: 10/Dec/12 Resolved: 09/Jan/12 |
|
| Status: | Resolved |
| Project: | Doctrine 2 - ORM |
| Component/s: | Tools |
| Affects Version/s: | 2.1.5 |
| Fix Version/s: | 2.3 |
| Security Level: | All |
| Type: | Bug | Priority: | Minor |
| Reporter: | Sergio Moya | Assignee: | Benjamin Eberlei |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian 6.0.3 - Linux 2.6.32-5-amd64 Symfony2 2.0.8 + Doctrine2 2.1.5 |
||
| Issue Links: |
|
||||||||
| Description |
|
I have two classes. One extends from another. I'm using the annotation @MappedSuperclass This is a bug of the command console? Really you should not copy them if you do not extend them. When you What happens? Im usign Symfony 2. Thanks!!!! Code: Father class: /******************************************************************** /**
/**
/**
/**
|
| Comments |
| Comment by Benjamin Eberlei [ 09/Jan/12 ] |
|
It is a known problem that will be fixed in 2.3 hopefully. |
| Comment by Johan Hendrik Ehlers [ 03/Jul/12 ] |
|
I just noticed that this is only an issue if the member has a protected scope in the mapped super class, it works fine for private members. |
| Comment by Lukas Domnick [ 10/Dec/12 ] |
|
As of Doctrine 2.3.0, Symfony 2.1.3, this behaviour is still reproducable. |