01e38acffe
Watch online movie Mere Yaar Ki Shaadi Hai from. You can also Download Movie Mere Yaar Ki Shaadi Hai from various high quality websites.
Enjoy Mere Yaar Ki Shaadi HaiWatch movie Mere Yaar Ki Shaadi Hai online Free..
This site doesn't host any movie files. The links are from third part of internet. We dont host any reminster movies on this site. All movie files are hosted on third party sites & uploaded by other users. If you want to remove a file please contact the original host siteQ:
Laravel Eloquent : add a 'where' in $collection->get() method
i have an array of objects that i need to match in order to get a certain result :
array(2) {
[0]=>
object(stdClass)#44 (5) {
["id"] => string(5) "SOMETHING"
["name"] => string(7) "SOMETHING"
}
[1]=>
object(stdClass)#45 (5) {
["id"] => string(5) "SOMETHING"
["name"] => string(7) "SOMETHING"
}
}
I can't use a where with a "in" clause, because i need to apply it on all the objects in the array (there are more than 2 objects in the array)
I also can't use a where with a value of the object id property, because there are 2 objects with the same id.
This is the code i use for my query :
$collection = Collects::where('object_id', 'in', $array_of_objects)
->where('sub_object_id', 'in', $sub_objects)
->get();
The result of this code is that i get all the objects in the array.
For example,
if the array of objects and the sub-object array are the following :
array(2) {
Related links:
Commentaires