1
0
mirror of synced 2024-12-14 07:06:04 +03:00

Change the indentation

This commit is contained in:
jackbravo 2007-12-14 02:00:40 +00:00
parent 7d78af822c
commit 5dc0b6ab46

View File

@ -194,9 +194,17 @@ $user->refresh();
The {{Doctrine_Record::refresh()}} method can also refresh record relationships, but you need to specify them on the query. The {{Doctrine_Record::refresh()}} method can also refresh record relationships, but you need to specify them on the query.
<code type="php"> <code type="php">
$user = Doctrine_Query::create()->from('User')->leftJoin('Groups')->where('id = ?')->fetchOne(array(1)); $user = Doctrine_Query::create()
->from('User')
->leftJoin('Groups')
->where('id = ?')
->fetchOne(array(1));
$group = Doctrine_Query::create()->from('Group')->leftJoin('Users')->where('id = ?')->fetchOne(array(1)); $group = Doctrine_Query::create()
->from('Group')
->leftJoin('Users')
->where('id = ?')
->fetchOne(array(1));
$userGroup = new UserGroup(); $userGroup = new UserGroup();
$userGroup->user_id = $user->id; $userGroup->user_id = $user->id;