Entity/DocumentRepository.php
changeset 67 989d9e117586
parent 65 ba6b8e38d90e
child 68 e7384fb35f7a
equal deleted inserted replaced
66:868d0fcdbb99 67:989d9e117586
    42     {
    42     {
    43         return $this->findOneBy(array("externalId" => $external_id));
    43         return $this->findOneBy(array("externalId" => $external_id));
    44     }
    44     }
    45     
    45     
    46     
    46     
    47     private function reflectionSetField($object, $method_name, $value)
    47     public function reflectionSetField($object, $method_name, $value)
    48     {
    48     {
    49         if(isset($this->set_methods[$method_name]))
    49         if(isset($this->set_methods[$method_name]))
    50         {
    50         {
    51             $set_method = $this->set_methods[$method_name];
    51             $set_method = $this->set_methods[$method_name];
    52         }
    52         }
    77         //set value
    77         //set value
    78         $set_method->invoke($object, $value);
    78         $set_method->invoke($object, $value);
    79         
    79         
    80     }
    80     }
    81     
    81     
    82     private function reflectionGetField($document, $accessor)
    82     public function reflectionGetField($document, $accessor)
    83     {
    83     {
    84         
    84         
    85         if(!isset($this->get_methods[$accessor]) ||  is_null($this->get_methods[$accessor]))
    85         if(!isset($this->get_methods[$accessor]) ||  is_null($this->get_methods[$accessor]))
    86         {
    86         {
    87             if(is_null($this->reflection_class))
    87             if(is_null($this->reflection_class))