equal
deleted
inserted
replaced
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)) |