21 if(isset($this->metas[
"#manyToMany"]))
22 $manyToManys=$this->metas[
"#manyToMany"];
24 $fields=\array_diff($this->metas[
"#fieldNames"],$this->metas[
"#notSerializable"]);
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]);
generateInsert($table, $fields, $datas)
scanManyToManys(DbExport $dbExport, $manyToManys)
exports(DbExport $dbExport, $condition="")
static getAll($className, $condition='', $loadManyToOne=true, $loadOneToMany=false, $useCache=NULL)
Returns an array of $className objects from the database.
addManyToMany($jointable, $memberTargetEntity)
__construct($model, $batchSize=20)
static getModelMetadata($className)
static getTableName($class)