public function setUp() { parent::setUp(); $this->hasOne('RokGallery_Model_FileLoves as Loves', array('local' => 'id', 'foreign' => 'file_id')); $this->hasOne('RokGallery_Model_FileViews as Views', array('local' => 'id', 'foreign' => 'file_id')); $this->hasMany('RokGallery_Model_Slice as Slices', array('local' => 'id', 'foreign' => 'file_id', 'orderBy' => 'admin_thumb ASC, title ASC')); $this->hasMany('RokGallery_Model_FileTags as Tags', array('local' => 'id', 'foreign' => 'file_id')); $timestampable0 = new Doctrine_Template_Timestampable(); $sluggable0 = new Doctrine_Template_Sluggable(array('unique' => true, 'fields' => array(0 => 'title'))); $searchable0 = new Doctrine_Template_Searchable(array('fields' => array(0 => 'title', 1 => 'description'), 'tableName' => '%TABLE%_index', 'builderOptions' => array('baseClassName' => 'RokCommon_Doctrine_Record', 'baseTableClassName' => 'RokCommon_Doctrine_Table'))); $this->actAs($timestampable0); $this->actAs($sluggable0); $this->actAs($searchable0); }
public function setUp() { parent::setUp(); $this->hasOne('RokGallery_Model_File as File', array('local' => 'file_id', 'foreign' => 'id', 'onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE')); $this->hasMany('RokGallery_Model_SliceTags as Tags', array('local' => 'id', 'foreign' => 'slice_id')); $this->hasMany('RokGallery_Model_FileTags as FileTags', array('local' => 'file_id', 'foreign' => 'file_id', 'onDelete' => 'NO ACTION', 'onUpdate' => 'NO ACTION')); $this->hasOne('RokGallery_Model_Gallery as Gallery', array('local' => 'gallery_id', 'foreign' => 'id', 'onDelete' => 'SET NULL', 'onUpdate' => 'CASCADE')); $orderable0 = new Doctrine_Template_Orderable(array('orderableBy' => array(0 => 'gallery_id'))); $timestampable0 = new Doctrine_Template_Timestampable(); $sluggable0 = new Doctrine_Template_Sluggable(array('fields' => array(0 => 'title'), 'uniqueBy' => array(0 => 'gallery_id'), 'unique' => true)); $searchable0 = new Doctrine_Template_Searchable(array('fields' => array(0 => 'title', 1 => 'caption'), 'tableName' => '%TABLE%_index', 'builderOptions' => array('baseClassName' => 'RokCommon_Doctrine_Record', 'baseTableClassName' => 'RokCommon_Doctrine_Table'))); $this->actAs($orderable0); $this->actAs($timestampable0); $this->actAs($sluggable0); $this->actAs($searchable0); }
public function setUp() { parent::setUp(); $this->hasMany('RokGallery_Model_Slice as Slices', array('local' => 'id', 'foreign' => 'gallery_id')); }
public function setUp() { parent::setUp(); $this->hasOne('RokGallery_Model_File as File', array('local' => 'file_id', 'foreign' => 'id', 'onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE', 'owningSide' => true)); }
public function setUp() { parent::setUp(); $timestampable0 = new Doctrine_Template_Timestampable(); $this->actAs($timestampable0); }
public function setUp() { parent::setUp(); $this->hasOne('RokGallery_Model_File as File', array('local' => 'file_id', 'foreign' => 'id', 'onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE')); $this->hasMany('RokGallery_Model_Slice as Slices', array('local' => 'file_id', 'foreign' => 'file_id', 'onDelete' => 'NO ACTION', 'onUpdate' => 'NO ACTION')); }
public function setUp() { parent::setUp(); $this->hasOne('RokGallery_Model_Slice as Slice', array('local' => 'slice_id', 'foreign' => 'id', 'onDelete' => 'CASCADE', 'onUpdate' => 'CASCADE')); }