Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Just a short note. The configuration of the record type is now mandatory for every concrete class. Instead of
- > <pre>
- > config.tx_extbase.persistence.classes {
- > Organization {
- > mapping {
- > tableName = party
- > }
- > subclasses {
- > Company = Company
- > ScientificInstitution = ScientificInstitution
- > }
- > }
- > Person {
- > mapping {
- > tableName = party
- > }
- > }
- > Company {
- > mapping {
- > tableName = party
- > }
- > }
- > ScientificInstitution {
- > mapping {
- > tableName = party
- > }
- > }
- > }
- > </pre>
- it has to be
- <pre>
- config.tx_extbase.persistence.classes {
- Organization {
- mapping {
- tableName = party
- recordType = Organization
- }
- subclasses {
- Company = Company
- ScientificInstitution = ScientificInstitution
- }
- }
- Person {
- mapping {
- tableName = party
- recordType = Person
- }
- }
- Company {
- mapping {
- tableName = party
- recordType = Company
- }
- }
- ScientificInstitution {
- mapping {
- tableName = party
- recordType = ScientificInstitution
- }
- }
- }
- </pre>
- I use STI in a complex domain and it works quite well.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement