Exemplo n.º 1
0
 public function match_and_save_attributes($object, $attributes_array, $return_object = FALSE)
 {
     $object = objects::match_attributes($object, $attributes_array);
     $object->save();
     if ($return_object) {
         return $object;
     } else {
         return $object->saved;
     }
 }