Example #1
0
 /**
  * Fill the Active Record properties from another Active Record
  * @param $object An Active Record
  */
 public function mergeObject(TRecord $object)
 {
     $data = $object->toArray();
     foreach ($data as $key => $value) {
         $this->data[$key] = $value;
     }
 }