hasColumn('name', 'string', 150); $this->hasColumn('foreign_id', 'integer', 10, array ('unique' => true,)); } public function setUp() { parent::setUp(); $this->hasOne('gnatEmail as Email', array('local'=> 'foreign_id', 'foreign'=>'id', 'onDelete'=>'CASCADE')); } }