Доброе время суток . У меня возникла проблема с Doctrine . У меня есть 2-е модели : PHP: class Content extends Doctrine_Record { public function setTableDefinition () { $this->hasColumn('id','integer',4,array('notnull'=>true,'primary'=>true,'autoincrement'=>true,'unsigned'=>true)); $this->hasColumn('id_content','integer',4,array('unsigned'=>true)); $this->hasColumn('id_meta','integer',4,array('unsigned'=>true)); $this->hasColumn('Title','string',50); $this->hasColumn('Date','string',50); $this->hasColumn('Content','string',50); $this->hasColumn('Author','string',50); $this->hasColumn('Url','string',50); } public function setUp () { $this->hasOne('Content_cat',array('local'=>'id_content','foreign'=>'id')); } } PHP: class Content_cat extends Doctrine_Record { public function setTableDefinition () { $this->hasColumn('id','integer',4,array('notnull'=>true,'primary'=>true,'autoincrement'=>true,'unsigned'=>true)); $this->hasColumn('id_meta','integer',4,array('unsigned'=>true)); $this->hasColumn('imgFilePath','string',50); $this->hasColumn('Title','string',50); $this->hasColumn('Description','string',50); $this->actAs('NestedSet'); } public function setUp () { $this->hasMany('Content',array('local'=>'id','foreign'=>'id_content')); } Из этого видно что с использованием Доктрины я пытаюсь сделать контент с вложениями. Вопрос такой как организовать сами вложения при создании бд из этих моделей в таблице Content_cat появилось 3-и поля дополнительных . Может кто работал с этим подскажите .