Commit d631c789 authored by bschussek's avatar bschussek

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

parent eb8b3915
...@@ -589,7 +589,7 @@ class Phonenumber extends Doctrine_Record ...@@ -589,7 +589,7 @@ class Phonenumber extends Doctrine_Record
{ {
$this->index('product_id', array('fields' => 'user_id')); $this->index('product_id', array('fields' => 'user_id'));
$this->hasMany('User', array('local' => 'user_id', $this->hasOne('User', array('local' => 'user_id',
'foreign' => 'id', 'foreign' => 'id',
'onDelete' => 'CASCADE')); 'onDelete' => 'CASCADE'));
} }
......
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