compared with
Current by Dolf Schimmel (Freeaqingme)
on Feb 05, 2011 19:21.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (13)

View Page History
{note:title=Under Construction}
<ac:macro ac:name="note"><ac:parameter ac:name="title">Under Construction</ac:parameter><ac:rich-text-body>
<p>This proposal is under construction and is not ready for review.</p></ac:rich-text-body></ac:macro>
{note}

<ac:macro ac:name="unmigrated-inline-wiki-markup"><ac:plain-text-body><![CDATA[{zone-template-instance:ZFDEV:Zend Proposal Zone Template}

{zone-data:component-name}
{
// Driver.car_id points to Car.id
Driver::hasOne('Car', self::hasOne('Car', array('local'=>'id', 'foreign'=>'driver_id'));
}
}
public static function initRelationships()
{
Car::hasOne('Driver', self::hasOne('Driver', array('local'=>'driver_id', 'foreign'=>'id');
}
}
{
// Person.group_id is a foreign key to Group.id
Person::hasOne('Group', self::hasOne('Group', array('local'=>'school_id', 'foreign'=>'id'));
}
}
public static function initRelationships()
{
School::hasMany('Person self::hasMany('Person as Students', array('local'=>'id', 'foreign'=>'school_id');
}
}
{
// Person.group_id is a foreign key to Group.id
Person::hasMany('Group self::hasMany('Group as Groups', array('local'=>'person_id', 'foreign'=>'group_id', 'refClass' => 'Membership'));
}
}
public static function initRelationships()
{
Group::hasMany('Person self::hasMany('Person as Members', array('local'=>'group_id', 'foreign'=>'person_id', 'refClass' => 'Membership');
}
}
{zone-data}

{zone-template-instance}
{zone-template-instance}]]></ac:plain-text-body></ac:macro>