Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
dcee382e
Commit
dcee382e
authored
Dec 26, 2013
by
Klimov Paul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mongo README.md updated.
parent
f77e3b4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
README.md
extensions/yii/mongodb/README.md
+9
-1
No files found.
extensions/yii/mongodb/README.md
View file @
dcee382e
...
...
@@ -65,11 +65,13 @@ class Customer extends ActiveRecord
*/
public
function
attributes
()
{
return
[
'name'
,
'email'
,
'address'
,
'status'
];
return
[
'
_id'
,
'
name'
,
'email'
,
'address'
,
'status'
];
}
}
```
Note: collection primary key name ('_id') should be always explicitly setup as an attribute.
You can use
[
[\yii\data\ActiveDataProvider
]
] with
[
[\yii\mongodb\Query
]
] and
[
[\yii\mongodb\ActiveQuery
]
]:
```
php
...
...
@@ -102,3 +104,8 @@ $models = $provider->getModels();
This extension supports
[
MongoGridFS
](
http://docs.mongodb.org/manual/core/gridfs/
)
via
classes under namespace "
\y
ii
\m
ongodb
\f
ile".
This extension supports logging and profiling, however log messages does not contain
actual text of the performed queries, they contains only a “close approximation” of it
composed on the values which can be extracted from PHP Mongo extension classes.
If you need to see actual query text, you should use specific tools for that.
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment