- typo fixes
This commit is contained in:
parent
797cdece48
commit
1879b8ea58
@ -76,10 +76,10 @@ $group->username='users';
|
||||
$group->password='password';
|
||||
$group->save();
|
||||
|
||||
$q = Doctrine_Query();
|
||||
$q = new Doctrine_Query();
|
||||
$user = $q->from('Entity')->where('id=?')->execute(array($user->id))->getFirst();
|
||||
|
||||
$q = Doctrine_Query();
|
||||
$q = new Doctrine_Query();
|
||||
$group = $q->from('Entity')->where('id=?')->execute(array($group->id))->getFirst();
|
||||
</code>
|
||||
|
||||
|
@ -20,5 +20,5 @@ $q = new Doctrine_Query($conn);
|
||||
|
||||
// an example using the create method
|
||||
// here we simple fetch all users
|
||||
$users = Doctrine_Query::create()->from('User')->execute();
|
||||
$users = new Doctrine_Query::create()->from('User')->execute();
|
||||
</code>
|
||||
|
Loading…
x
Reference in New Issue
Block a user