| @@ 263-268 (lines=6) @@ | ||
| 260 | $result[]=$joinColumn["name"]; |
|
| 261 | } |
|
| 262 | } |
|
| 263 | if ($manyToMany=self::getAnnotationInfo($class, "#manyToMany")) { |
|
| 264 | $manyToMany=array_keys($manyToMany); |
|
| 265 | foreach ($manyToMany as $member){ |
|
| 266 | $result[]=$member . "Ids"; |
|
| 267 | } |
|
| 268 | } |
|
| 269 | return $result; |
|
| 270 | } |
|
| 271 | ||
| @@ 41-46 (lines=6) @@ | ||
| 38 | $result[$joinColumn["name"]]=$member; |
|
| 39 | } |
|
| 40 | } |
|
| 41 | if ($manyToMany=self::getAnnotationInfo($class, "#manyToMany")) { |
|
| 42 | $manyToMany=array_keys($manyToMany); |
|
| 43 | foreach ($manyToMany as $member){ |
|
| 44 | $result[$member . "Ids"]=$member; |
|
| 45 | } |
|
| 46 | } |
|
| 47 | if ($oneToMany=self::getAnnotationInfo($class, "#oneToMany")) { |
|
| 48 | $oneToMany=array_keys($oneToMany); |
|
| 49 | foreach ($oneToMany as $member){ |
|
| @@ 47-52 (lines=6) @@ | ||
| 44 | $result[$member . "Ids"]=$member; |
|
| 45 | } |
|
| 46 | } |
|
| 47 | if ($oneToMany=self::getAnnotationInfo($class, "#oneToMany")) { |
|
| 48 | $oneToMany=array_keys($oneToMany); |
|
| 49 | foreach ($oneToMany as $member){ |
|
| 50 | $result[$member . "Ids"]=$member; |
|
| 51 | } |
|
| 52 | } |
|
| 53 | return ["relations"=>$result,"manyToOne"=>$manyToOne,"manyToMany"=>$manyToMany,"oneToMany"=>$oneToMany]; |
|
| 54 | } |
|
| 55 | ||