Commit d631c789 authored by bschussek's avatar bschussek

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

parent eb8b3915
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment