1
0
mirror of synced 2024-12-13 14:56:01 +03:00

adding fixes in the manual of missing closing parenthesis reported by jwhitten on the maillinglist. Thanks!

This commit is contained in:
airox 2007-12-28 16:22:46 +00:00
parent b994c1a6f9
commit 7d6e9b29d0
2 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ class IndexTest extends Doctrine_Record
{
$this->hasColumn('name', 'string');
$this->index('myindex', array('fields' => 'name');
$this->index('myindex', array('fields' => 'name'));
}
}
</code>

View File

@ -28,7 +28,7 @@ class Forum_Board extends Doctrine_Record
{
// notice the 'as' keyword here
$this->hasMany('Forum_Thread as Threads', array('local' => 'id',
'foreign' => 'board_id');
'foreign' => 'board_id'));
}
}
</code>
@ -49,7 +49,7 @@ class Forum_Thread extends Doctrine_Record
{
// notice the 'as' keyword here
$this->hasOne('Forum_Board as Board', array('local' => 'board_id',
'foreign' => 'id');
'foreign' => 'id'));
}
}
</code>
@ -255,12 +255,12 @@ class User extends Doctrine_Record
$this->hasMany('User as Parents', array('local' => 'parent_id',
'foreign' => 'child_id',
'refClass' => 'UserReference'
);
));
$this->hasMany('User as Children', array('local' => 'child_id',
'foreign' => 'parent_id',
'refClass' => 'UserReference'
);
));
}
public function setTableDefinition()
@ -293,7 +293,7 @@ class User extends Doctrine_Record
'foreign' => 'user2',
'refClass' => 'UserReference',
'equal' => true,
);
));
}
public function setTableDefinition()
{