| @@ 70-78 (lines=9) @@ | ||
| 67 | * @param string $fkField |
|
| 68 | * @param array $annotationArray |
|
| 69 | */ |
|
| 70 | protected static function prepareManyToOne(&$ret, $instance,$value, $fkField,$annotationArray) { |
|
| 71 | $member=$annotationArray["member"]; |
|
| 72 | $fk=OrmUtils::getFirstKey($annotationArray["className"]); |
|
| 73 | $key=$annotationArray["className"]."|".$member."|".$fkField; |
|
| 74 | if(!isset($ret[$key])){ |
|
| 75 | $ret[$key]=new PendingRelationsRequest(); |
|
| 76 | } |
|
| 77 | $ret[$key]->addPartObject($instance,$fk . "= ?",$value); |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||
| @@ 174-182 (lines=9) @@ | ||
| 171 | * @param string $fkField |
|
| 172 | * @param array $annotationArray |
|
| 173 | */ |
|
| 174 | protected static function prepareManyToOne(&$ret, $instance,$value, $fkField,$annotationArray) { |
|
| 175 | $member=$annotationArray["member"]; |
|
| 176 | $fk=OrmUtils::getFirstKey($annotationArray["className"]); |
|
| 177 | $key=$annotationArray["className"]."|".$member."|".$fkField; |
|
| 178 | if(!isset($ret[$key])){ |
|
| 179 | $ret[$key]=new PendingRelationsRequest(); |
|
| 180 | } |
|
| 181 | $ret[$key]->addPartObject($instance,$fk . "= ?",$value); |
|
| 182 | } |
|
| 183 | ||
| 184 | private static function getIncludedForStep($included){ |
|
| 185 | if(is_bool($included)){ |
|