adding fixes in the manual of missing closing parenthesis reported by jwhitten on the maillinglist. Thanks!
This commit is contained in:
parent
b994c1a6f9
commit
7d6e9b29d0
@ -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
|
|||||||
{
|
{
|
||||||
// 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
|
|||||||
{
|
{
|
||||||
// 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
|
|||||||
$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
|
|||||||
'foreign' => 'user2',
|
'foreign' => 'user2',
|
||||||
'refClass' => 'UserReference',
|
'refClass' => 'UserReference',
|
||||||
'equal' => true,
|
'equal' => true,
|
||||||
);
|
));
|
||||||
}
|
}
|
||||||
public function setTableDefinition()
|
public function setTableDefinition()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user