We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Scenario:
Project
Organization
Criteria
Current:
Expected:
DbRef
Example document:
{ "_id" : ObjectId("5de7b9c7a9ab701fb64f8622"), "createUserId" : "578531300a9907a9568b4941", "_class" : "Maslosoft\\Fc\\Tracker\\Models\\Project", "createDate" : ISODate("2019-12-04T13:51:54.717Z"), "createUser" : "piotr", "id" : ObjectId("5de7b9c7a9ab701fb64f8622"), "name" : "Test2", "orgName" : "Maslosoft", "organization" : { "class" : "Maslosoft\\Orgs\\Models\\MyOrganization", "pk" : ObjectId("58f77766b7cd245d0f03c651"), "_class" : "Maslosoft\\Mangan\\Model\\DbRef" }, "updateDate" : ISODate("2019-12-04T13:51:54.717Z"), "updateUser" : "piotr", "updateUserId" : "578531300a9907a9568b4941", "wasSaved" : false }
Assuming that instance of Organization is provided as condition for organization field, ie:
organization
$organization = Organization::model()->findByPk('58f77766b7cd245d0f03c651'); $criteria = new Criteria(null, new Project); $criteria->addCond('organization', '==', $organization);
Generated conditions should match in Project:
organization.class: "Maslosoft\\Orgs\\Models\\MyOrganization" organization.pk: ObjectId("58f77766b7cd245d0f03c651")
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Scenario:
Project
s which referenceOrganization
Criteria
objectOrganization
Current:
Expected:
Project
asDbRef
Example document:
Assuming that instance of
Organization
is provided as condition fororganization
field, ie:Generated conditions should match in
Project
:The text was updated successfully, but these errors were encountered: