public one ( |
||
$db | the Mongo connection used to execute the query. If null, the Mongo connection returned by [[modelClass]] will be used. | |
return | a single row of query result. Depending on the setting of [[asArray]], the query result may be either an array or an ActiveRecord object. Null will be returned if the query results in nothing. |