public function setUp()
 {
     parent::setUp();
     $this->hasMany('ScheduleResource', array('local' => 'id', 'foreign' => 'admin_user_id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 protected function execute($arguments = array(), $options = array())
 {
     $this->openDatabaseConnection();
     // sfOpenPNEMailSend requires Zend
     sfOpenPNEApplicationConfiguration::registerZend();
     opDoctrineRecord::setDefaultCulture(sfConfig::get('default_culture', 'ja_JP'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Member', array('local' => 'member_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
Example #4
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('File', array('local' => 'file_id', 'foreign' => 'id', 'onDelete' => 'cascade', 'owningSide' => true));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
Example #5
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('GadgetConfig', array('local' => 'id', 'foreign' => 'gadget_id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
Example #6
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('BannerUseImage', array('local' => 'id', 'foreign' => 'banner_id'));
     $i18n0 = new Doctrine_Template_I18n(array('fields' => array(0 => 'caption'), 'length' => 5));
     $this->actAs($i18n0);
 }
 public function __construct()
 {
     parent::__construct();
     $types = array('string', 'array', 'object', 'blob', 'clob', 'gzip', 'char', 'varchar');
     foreach ($types as $type) {
         $this->hasColumn('column_' . $type, $type);
     }
 }
 public function setUp()
 {
     parent::setUp();
     $i18n0 = new Doctrine_Template_I18n(array('fields' => array(0 => 'caption'), 'length' => 5));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($i18n0);
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('File', array('local' => 'file_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasMany('BannerUseImage', array('local' => 'id', 'foreign' => 'banner_image_id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Member', array('local' => 'member_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasOne('AdminUser', array('local' => 'admin_user_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasOne('ResourceType', array('local' => 'resource_type_id', 'foreign' => 'id', 'onDelete' => 'set null'));
     $this->hasMany('ScheduleResourceLock', array('local' => 'id', 'foreign' => 'schedule_resource_id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Banner', array('local' => 'banner_id', 'foreign' => 'id'));
     $this->hasOne('BannerImage', array('local' => 'banner_image_id', 'foreign' => 'id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Community', array('local' => 'id', 'foreign' => 'community_category_id'));
     $nestedset0 = new Doctrine_Template_NestedSet(array('hasManyRoots' => true, 'rootColumnName' => 'tree_key'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($nestedset0);
     $this->actAs($timestampable0);
 }
Example #13
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Member', array('local' => 'member_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasMany('ScheduleMember as ScheduleMembers', array('local' => 'id', 'foreign' => 'schedule_id'));
     $this->hasMany('ScheduleResourceLock as ScheduleResourceLocks', array('local' => 'id', 'foreign' => 'schedule_id'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('SendMessageData', array('local' => 'id', 'foreign' => 'message_type_id'));
     $i18n0 = new Doctrine_Template_I18n(array('fields' => array(0 => 'caption', 1 => 'info', 2 => 'body', 3 => 'subject'), 'length' => 5));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($i18n0);
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Diary', array('local' => 'diary_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasOne('Member', array('local' => 'member_id', 'foreign' => 'id', 'onDelete' => 'set null'));
     $this->hasMany('DiaryCommentImage as DiaryCommentImages', array('local' => 'id', 'foreign' => 'diary_comment_id'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Member', array('local' => 'member_id_to', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasOne('Member as MemberRelatedByMemberIdFrom', array('local' => 'member_id_from', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $opactivitycascadingbehavior0 = new opActivityCascadingBehavior(array());
     $this->actAs($timestampable0);
     $this->actAs($opactivitycascadingbehavior0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Member', array('local' => 'member_id', 'foreign' => 'id', 'onDelete' => 'set null'));
     $this->hasOne('MessageType', array('local' => 'message_type_id', 'foreign' => 'id'));
     $this->hasMany('MessageFile', array('local' => 'id', 'foreign' => 'message_id'));
     $this->hasMany('MessageSendList', array('local' => 'id', 'foreign' => 'message_id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Profile', array('local' => 'profile_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasMany('MemberProfile', array('local' => 'id', 'foreign' => 'profile_option_id'));
     $i18n0 = new Doctrine_Template_I18n(array('fields' => array(0 => 'value'), 'length' => 5));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($i18n0);
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Member', array('local' => 'member_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasOne('File as Image', array('local' => 'file_id', 'foreign' => 'id', 'onDelete' => 'set null'));
     $this->hasMany('OAuthAdminToken', array('local' => 'id', 'foreign' => 'oauth_consumer_id'));
     $this->hasMany('OAuthMemberToken', array('local' => 'id', 'foreign' => 'oauth_consumer_id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Member', array('local' => 'member_id', 'foreign' => 'id', 'onDelete' => 'set null'));
     $this->hasOne('CommunityEvent', array('local' => 'community_event_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $opcommunitytopicpluginimagesbehavior0 = new opCommunityTopicPluginImagesBehavior();
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($opcommunitytopicpluginimagesbehavior0);
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Member', array('local' => 'member_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasOne('Profile', array('local' => 'profile_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasOne('ProfileOption', array('local' => 'profile_option_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $nestedset0 = new Doctrine_Template_NestedSet(array('hasManyRoots' => true, 'rootColumnName' => 'tree_key'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($nestedset0);
     $this->actAs($timestampable0);
 }
 public function __construct()
 {
     parent::__construct();
     $types = array('string', 'array', 'object', 'blob', 'clob', 'char', 'varchar');
     global $zlibEnabled;
     if ($zlibEnabled) {
         $types[] = 'gzip';
     }
     foreach ($types as $type) {
         $this->hasColumn('column_' . $type, $type);
     }
 }
 protected function execute($arguments = array(), $options = array())
 {
     $this->openDatabaseConnection();
     opDoctrineRecord::setDefaultCulture(sfConfig::get('default_culture', 'ja_JP'));
     sfContext::createInstance($this->createConfiguration('pc_frontend', 'prod'), 'pc_frontend');
     $next = sfConfig::get('next_update_blog_rss_cache', 0);
     $size = sfConfig::get('app_update_blog_rss_cache_limit', 0);
     $last = Doctrine::getTable('BlogRssCache')->countFeedUrl();
     $next += Doctrine::getTable('BlogRssCache')->update($next, $size);
     if ($next >= $last) {
         $next = 0;
     }
     sfConfig::set('next_update_blog_rss_cache', $next);
 }
Example #24
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('File', array('local' => 'file_id', 'foreign' => 'id', 'onDelete' => 'set null'));
     $this->hasOne('CommunityCategory', array('local' => 'community_category_id', 'foreign' => 'id', 'onDelete' => 'set null'));
     $this->hasMany('CommunityTopic', array('local' => 'id', 'foreign' => 'community_id'));
     $this->hasMany('CommunityEvent', array('local' => 'id', 'foreign' => 'community_id'));
     $this->hasMany('Tag', array('local' => 'id', 'foreign' => 'community_id'));
     $this->hasMany('CommunityMember', array('local' => 'id', 'foreign' => 'community_id'));
     $this->hasMany('CommunityMemberPosition', array('local' => 'id', 'foreign' => 'community_id'));
     $this->hasMany('CommunityConfig', array('local' => 'id', 'foreign' => 'community_id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
Example #25
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('DiaryImage as DiaryImages', array('local' => 'id', 'foreign' => 'file_id'));
     $this->hasMany('DiaryCommentImage as DiaryCommentImages', array('local' => 'id', 'foreign' => 'file_id'));
     $this->hasMany('MessageFile', array('local' => 'id', 'foreign' => 'file_id'));
     $this->hasMany('MemberImage', array('local' => 'id', 'foreign' => 'file_id'));
     $this->hasOne('FileBin', array('local' => 'id', 'foreign' => 'file_id'));
     $this->hasMany('Community', array('local' => 'id', 'foreign' => 'file_id'));
     $this->hasMany('OAuthConsumerInformation', array('local' => 'id', 'foreign' => 'file_id'));
     $this->hasMany('BannerImage', array('local' => 'id', 'foreign' => 'file_id'));
     $this->hasMany('ActivityImage', array('local' => 'id', 'foreign' => 'file_id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
Example #26
0
 public function setUp()
 {
     parent::setUp();
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
Example #27
0
 public function leftJoinTranslation($tableName, $culture = null)
 {
     $culture = $culture !== null ? $culture : opDoctrineRecord::getDefaultCulture();
     $fallbackCulture = sfConfig::get('sf_default_culture');
     if ($culture === $fallbackCulture) {
         return $this->leftJoin($tableName . '.Translation t WITH t.lang = ?', $culture);
     }
     return $this->leftJoin($tableName . '.Translation t WITH t.lang IN (?, ?)', array($culture, $fallbackCulture));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('TestParent', array('local' => 'test_parent_id', 'foreign' => 'id', 'onDelete' => 'set null'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Diary', array('local' => 'diary_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasOne('Member', array('local' => 'member_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
 }
 public function setUp()
 {
     parent::setUp();
     $i18n0 = new Doctrine_Template_I18n(array('fields' => array(0 => 'title', 1 => 'template'), 'length' => 5));
     $this->actAs($i18n0);
 }