29 if(isset($this->metas[
"#manyToMany"]))
30 $manyToManys=$this->metas[
"#manyToMany"];
32 $fields=\array_diff($this->metas[
"#fieldNames"],$this->metas[
"#notSerializable"]);
33 $datas=DAO::getAll($this->model,$condition);
38 foreach ($manyToManys as $member=>$manyToMany){
39 if(isset($this->metas[
"#joinTable"][$member])){
40 $annotJoinTable=$this->metas[
"#joinTable"][$member];
41 $dbExport->
addManyToMany($annotJoinTable[
"name"], [
"member"=>$member,
"class"=>$this->model]);
generateInsert($table, $fields, $datas)
addManyToMany($jointable, $memberTargetEntity)
exports(DbExport $dbExport, $condition="")
scanManyToManys(DbExport $dbExport, $manyToManys)
__construct($model, $batchSize=20)
Gateway class between database and object model.
Object/relational mapping utilities.
static getTableName($class)
static getModelMetadata($className)