Correcting the last example (Phonenumber): Changed hasMany('User') to hasOne('User')
This commit is contained in:
parent
eb8b3915fa
commit
d631c789f3
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user