Also look into mixins/behaviors. I think id favor the inheritance route
though but ive never used it in propel.


On 10/24/07 1:59 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:

> 
> Hi!
> 
> I found the following snippet:
> 
> http://www.symfony-project.com/snippets/snippet/218
> 
> Propel seems to support inheritance, if i look at
> 
http://propel.phpdb.org/trac/wiki/Users/Documentation/1.2/Schema#columnelement>
.
> 
> Did you think about using Doctrine? It supports inheritance, as shown
> in http://trac.symfony-project.com/wiki/sfDoctrinePlugin0.1#Schemaymlsetup
> 
> 
> Erik
> 
> 
> On 24 Okt., 17:54, Jack Bates <[EMAIL PROTECTED]> wrote:
>> I have a hierarchical data model (in the object oriented sense, vs.
>> the nested set sense) e.g. I have a PhysicalObject class /
>> physical_object table and a DigitalObject class / digital_object
>> table. The PhysicalObject and DigitalObject classes share common code,
>> so should both extend a common "Object" class. The physical_object and
>> digital_object tables share common columns, which I'd like to keep in
>> an "object" table.
>> 
>> Using symfony 1.1 and Propel, the PhysicalObject and DigitalObject
>> classes must extend the generated BasePhysicalObject and
>> BaseDigitalObject classes. The "Object" class extends the generated
>> BaseObject class. How can I implement this object oriented hierarchy?
>> How can I make the PhysicalObject and DigitalObject classes extend the
>> "Object" class?
>> 
>> Thanks! Jack
> 
> 
> > 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to