-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If MongoRecord support relationships? like belong_to or has_many. #7
Comments
I have the same doubt. |
update , currently I declare functions to impl has_many or belong_to, like below code,
BUT I guess BaseMongoRecord can provide some relational functions, subclass can call it in constructor to define relationships. :) Then sublcass can generate get/set methods automaticllly. it is rough idea, does it work ? class FriendRecord extends BaseMongoRecord |
HI, Lunaru I tried to provide relation support fo MongoRecord as below , more detail, can check https://github.com/shaoyangyu/MongoRecord/blob/master/sample/easysample.php : class Student extends BaseMongoRecord |
HI, Lunaru
Not sure if MongoRecord support the relationships of records? like has_many or belong_to?
The text was updated successfully, but these errors were encountered: