Commit 7d6e9b29 authored by airox's avatar airox

adding fixes in the manual of missing closing parenthesis reported by jwhitten...

adding fixes in the manual of missing closing parenthesis reported by jwhitten on the maillinglist. Thanks!
parent b994c1a6
...@@ -20,7 +20,7 @@ class IndexTest extends Doctrine_Record ...@@ -20,7 +20,7 @@ class IndexTest extends Doctrine_Record
{ {
$this->hasColumn('name', 'string'); $this->hasColumn('name', 'string');
$this->index('myindex', array('fields' => 'name'); $this->index('myindex', array('fields' => 'name'));
} }
} }
</code> </code>
......
...@@ -28,7 +28,7 @@ class Forum_Board extends Doctrine_Record ...@@ -28,7 +28,7 @@ class Forum_Board extends Doctrine_Record
{ {
// notice the 'as' keyword here // notice the 'as' keyword here
$this->hasMany('Forum_Thread as Threads', array('local' => 'id', $this->hasMany('Forum_Thread as Threads', array('local' => 'id',
'foreign' => 'board_id'); 'foreign' => 'board_id'));
} }
} }
</code> </code>
...@@ -49,7 +49,7 @@ class Forum_Thread extends Doctrine_Record ...@@ -49,7 +49,7 @@ class Forum_Thread extends Doctrine_Record
{ {
// notice the 'as' keyword here // notice the 'as' keyword here
$this->hasOne('Forum_Board as Board', array('local' => 'board_id', $this->hasOne('Forum_Board as Board', array('local' => 'board_id',
'foreign' => 'id'); 'foreign' => 'id'));
} }
} }
</code> </code>
...@@ -255,12 +255,12 @@ class User extends Doctrine_Record ...@@ -255,12 +255,12 @@ class User extends Doctrine_Record
$this->hasMany('User as Parents', array('local' => 'parent_id', $this->hasMany('User as Parents', array('local' => 'parent_id',
'foreign' => 'child_id', 'foreign' => 'child_id',
'refClass' => 'UserReference' 'refClass' => 'UserReference'
); ));
$this->hasMany('User as Children', array('local' => 'child_id', $this->hasMany('User as Children', array('local' => 'child_id',
'foreign' => 'parent_id', 'foreign' => 'parent_id',
'refClass' => 'UserReference' 'refClass' => 'UserReference'
); ));
} }
public function setTableDefinition() public function setTableDefinition()
...@@ -293,7 +293,7 @@ class User extends Doctrine_Record ...@@ -293,7 +293,7 @@ class User extends Doctrine_Record
'foreign' => 'user2', 'foreign' => 'user2',
'refClass' => 'UserReference', 'refClass' => 'UserReference',
'equal' => true, 'equal' => true,
); ));
} }
public function setTableDefinition() public function setTableDefinition()
{ {
......
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