Esempio n. 1
0
 public function getCategoryObjects($id = null)
 {
     $objects = Object::join('object_meta', 'objects.id', '=', 'object_meta.object_id')->where('object_meta.meta_key', '_category_id')->where('object_meta.meta_value', $id)->where('objects.type', '<>', 'category')->select(array('objects.id', 'objects.name', 'objects.title'))->get();
     return $objects;
 }