1
0
mirror of synced 2025-02-20 06:03:15 +03:00

Correcting the last example (Phonenumber): Changed hasMany('User') to hasOne('User')

This commit is contained in:
bschussek 2007-10-26 13:00:31 +00:00
parent eb8b3915fa
commit d631c789f3

View File

@ -589,9 +589,9 @@ class Phonenumber extends Doctrine_Record
{
$this->index('product_id', array('fields' => 'user_id'));
$this->hasMany('User', array('local' => 'user_id',
'foreign' => 'id',
'onDelete' => 'CASCADE'));
$this->hasOne('User', array('local' => 'user_id',
'foreign' => 'id',
'onDelete' => 'CASCADE'));
}
}
</code>