@@ -117,6 +117,9 @@ discard block |
||
| 117 | 117 | return null; |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | + /** |
|
| 121 | + * @param integer $id |
|
| 122 | + */ |
|
| 120 | 123 | public function get_by_id($id) |
| 121 | 124 | { |
| 122 | 125 | $entity = connection::get_em()->find(get_class($this), $id); |
@@ -150,6 +153,9 @@ discard block |
||
| 150 | 153 | return true; |
| 151 | 154 | } |
| 152 | 155 | |
| 156 | + /** |
|
| 157 | + * @param string $guid |
|
| 158 | + */ |
|
| 153 | 159 | public function get_by_guid($guid) |
| 154 | 160 | { |
| 155 | 161 | if (!mgd_is_guid($guid)) { |
@@ -492,6 +498,7 @@ discard block |
||
| 492 | 498 | } |
| 493 | 499 | |
| 494 | 500 | /** |
| 501 | + * @param integer $up |
|
| 495 | 502 | * @return QueryBuilder |
| 496 | 503 | */ |
| 497 | 504 | protected function get_uniquefield_query($classname, $field, $part, $upfield, $up) |
@@ -593,7 +600,7 @@ discard block |
||
| 593 | 600 | /** |
| 594 | 601 | * @param string $domain |
| 595 | 602 | * @param string $name |
| 596 | - * @param mixed $value |
|
| 603 | + * @param string $value |
|
| 597 | 604 | * @return boolean |
| 598 | 605 | */ |
| 599 | 606 | public function set_parameter($domain, $name, $value) |
@@ -799,6 +806,9 @@ discard block |
||
| 799 | 806 | return new \midgard_reflection_property(get_called_class()); |
| 800 | 807 | } |
| 801 | 808 | |
| 809 | + /** |
|
| 810 | + * @param string $guid |
|
| 811 | + */ |
|
| 802 | 812 | public function set_guid($guid) |
| 803 | 813 | { |
| 804 | 814 | parent::__set('guid', $guid); |