Skip to content

Commit 46ef949

Browse files
committed
fixed
1 parent 663b3df commit 46ef949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpzlc/db/query.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ keys: symfony,phpzlc,查询,select
1111
## 语法
1212

1313
```php
14-
$userRepository = $this->getDoctrine()->getRepository('App:User');
14+
$userRepository = ActionLoad::$globalDoctrine->getRepository('App:User');
1515

1616
//检查数据是否存在
1717
$userRepository->isExist($rules = null, ResultSetMappingBuilder $resultSetMappingBuilder = null, $aliasChain = '');

0 commit comments

Comments
 (0)