#1412: Doctrine::createTablesFromModels() fails to build records related to
abstract records
------------------------+---------------------------------------------------
Reporter: bschussek | Owner: romanb
Type: defect | Status: closed
Priority: major | Milestone: 1.0.4
Component: Relations | Version: 1.0.2
Resolution: invalid | Keywords:
Has_test: 0 | Mystatus: Pending Core Response
Has_patch: 0 |
------------------------+---------------------------------------------------
Changes (by jwage):
* status: new => closed
* resolution: => invalid
Comment:
This seems expected to me. If you define a relationship to a class, in
order to know about the class, it has to instantiate it. No way around it.
If you want to define a relationship to a class, it must not be abstract.
Is the only reason you define it as abstract is so that Doctrine will not
export the tables to your dbms? If so you should not define it as abstract
and add:
{{{
Fruit:
attributes:
export: none
columns:
color: string
tree_id: integer
}}}
Now Doctrine will not create the table for the Fruit model.
--
Ticket URL: <http://trac.doctrine-project.org/ticket/1412#comment:3>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---