diff --git a/manual/docs/en/component-overview.txt b/manual/docs/en/component-overview.txt index cd2f12883..a6998ebe9 100644 --- a/manual/docs/en/component-overview.txt +++ b/manual/docs/en/component-overview.txt @@ -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. -$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->user_id = $user->id;