Change the indentation
This commit is contained in:
parent
7d78af822c
commit
5dc0b6ab46
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user