| @@ 29-36 (lines=8) @@ | ||
| 26 | return $this->generateInsert($table, $fields, $datas); |
|
| 27 | } |
|
| 28 | ||
| 29 | protected function scanManyToManys(DbExport $dbExport,$manyToManys){ |
|
| 30 | foreach ($manyToManys as $member=>$manyToMany){ |
|
| 31 | if(isset($this->metas["#joinTable"][$member])){ |
|
| 32 | $annotJoinTable=$this->metas["#joinTable"][$member]; |
|
| 33 | $dbExport->addManyToMany($annotJoinTable["name"], ["member"=>$member,"class"=>$this->model]); |
|
| 34 | } |
|
| 35 | } |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||
| @@ 55-62 (lines=8) @@ | ||
| 52 | return \array_diff($fieldNames, $notSerializable); |
|
| 53 | } |
|
| 54 | ||
| 55 | protected function scanManyToManys(DbGenerator $generator,$manyToManys){ |
|
| 56 | foreach ($manyToManys as $member=>$manyToMany){ |
|
| 57 | if(isset($this->metas["#joinTable"][$member])){ |
|
| 58 | $annotJoinTable=$this->metas["#joinTable"][$member]; |
|
| 59 | $generator->addManyToMany($annotJoinTable["name"], $manyToMany["targetEntity"]); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | } |
|
| 63 | ||
| 64 | protected function generatePks(DbGenerator $generator,$primaryKeys,$table,$fieldTypes,$nullables){ |
|
| 65 | $generator->addKey($table, $primaryKeys); |
|