Toggle navigation
Toggle navigation
This project
Loading...
Sign in
web
/
hood
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
ziy
2015-11-25 17:13:04 +0800
Commit
e33bdc963810b63416d74abccf2cbcfa00d815bb
2 parents
49ff5144
351d35d5
Merge branch 'master' into 'master'
修改mongodb选择集合的方式 See merge request !12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
Hood/Dao/MongoDB/MongoCore.php
Hood/Dao/MongoDB/MongoCore.php
View file @
e33bdc9
...
...
@@ -261,12 +261,12 @@ class MongoCore extends Root
* @param $collection
* @return \MongoCollection
*/
public
function
selectCollection
(
$
dbname
,
$
collection
)
public
function
selectCollection
(
$collection
)
{
if
(
$this
->
_mongo
==
null
)
{
$this
->
_connect
(
$dbname
);
$this
->
_connect
(
$
this
->
_
dbname
);
}
return
$this
->
_mongo
->
selectCollection
(
$dbname
,
$collection
);
return
$this
->
collection
(
$this
->
_dbname
,
$collection
);
}
/**
...
...
Please
register
or
login
to post a comment