Author: Olivier Verdier (Olivier.Verdier@gmail.com)
Inheritance: extends Doctrine_Record
Example #1
0
  /**
   * Request a document deletion from the search engine
   *
   * @param sfDoctrineRecord $record The record to unindex
   **/
  public function deleteFromIndex(sfDoctrineRecord $record)
  {
    $this->_searchHandler->unindex($record->getUniqueId());

    if($this->_inTransaction == 0)
      $this->_searchHandler->commit();
  }
 /**
  *
  * @param sfDoctrineRecord $review
  * @return PerformanceReview      
  */
 public function saveReview(sfDoctrineRecord $review)
 {
     try {
         $review->save();
         $review->refresh();
         return $review;
         //@codeCoverageIgnoreStart
     } catch (Exception $e) {
         throw new DaoException($e->getMessage(), $e->getCode(), $e);
     }
     //@codeCoverageIgnoreEnd
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Profit', array('local' => 'profit_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $this->hasOne('Style', array('local' => 'style_id', 'foreign' => 'id'));
     $this->hasOne('Fish', array('local' => 'fish_id', 'foreign' => 'id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('AdmMenus', array('local' => 'id', 'foreign' => 'adm_menu_id'));
     $this->hasOne('ClaHabilitado', array('local' => 'habilitado', 'foreign' => 'id'));
     $this->hasMany('AdmRolesMenus', array('local' => 'id', 'foreign' => 'adm_menu_id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Account', array('local' => 'account_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('sfGuardUser as User', array('local' => 'user_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('JobeetCategory', array('local' => 'category_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('SfGuardUser', array('local' => 'id_user', 'foreign' => 'id'));
     $this->hasOne('Encuestado', array('local' => 'id_encuestado', 'foreign' => 'id_encuestado'));
     $this->hasOne('CaiePreguntas', array('local' => 'id_pregunta_caie', 'foreign' => 'id_pregunta_caie'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('ReportGroup', array('local' => 'report_group_id', 'foreign' => 'reportGroupId', 'onDelete' => 'cascade'));
     $this->hasMany('AbstractDisplayField', array('local' => 'id', 'foreign' => 'display_field_group_id'));
     $this->hasMany('SelectedDisplayFieldGroup', array('local' => 'id', 'foreign' => 'display_field_group_id'));
 }
Example #10
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Module', array('local' => 'module_id', 'foreign' => 'id'));
     $this->hasMany('ScreenPermission', array('local' => 'id', 'foreign' => 'screen_id'));
     $this->hasMany('MenuItem', array('local' => 'id', 'foreign' => 'screenId'));
 }
Example #11
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Gallery', array('local' => 'gallery_id', 'foreign' => 'id', 'onDelete' => 'CASCADE'));
     $sluggable0 = new Doctrine_Template_Sluggable(array('fields' => array(0 => 'title')));
     $this->actAs($sluggable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Program as Programs', array('local' => 'id', 'foreign' => 'program_type_id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('MobilyrentContrat', array('local' => 'idcontrat', 'foreign' => 'id'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('LeaveType', array('local' => 'leave_type_id', 'foreign' => 'leaveTypeId'));
     $this->hasOne('Employee', array('local' => 'employee_id', 'foreign' => 'empNumber'));
     $this->hasOne('LeavePeriod', array('local' => 'leave_period_id', 'foreign' => 'leavePeriodId'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('DatRdeInscripcion', array('local' => 'inscripcion_id', 'foreign' => 'id_inscripcion'));
     $this->hasOne('DatRdeInscripcion as DatRdeInscripcion_2', array('local' => 'gestion_id', 'foreign' => 'gestion_id'));
     $this->hasOne('DatRdeEstudiante', array('local' => 'codigo_rude_id', 'foreign' => 'codigo_rude'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('ProyectoLey', array('local' => 'id_materia', 'foreign' => 'id_materia'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Address', array('local' => 'address_id', 'foreign' => 'id'));
     $this->hasMany('Imputation', array('local' => 'id', 'foreign' => 'building_id'));
     $this->hasMany('Room', array('local' => 'id', 'foreign' => 'building_id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('ClaAsignatura', array('local' => 'cod_asignatura_id', 'foreign' => 'cod_asignatura'));
     $this->hasOne('ClaCiclo', array('local' => 'nivel_id', 'foreign' => 'nivel_id'));
     $this->hasOne('ClaCiclo as ClaCiclo_3', array('local' => 'ciclo_id', 'foreign' => 'id_ciclo'));
 }
Example #19
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Matchs', array('local' => 'id', 'foreign' => 'server_id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('ClaDepartamento', array('local' => 'id_pais', 'foreign' => 'pais_id'));
     $this->hasMany('DatRdeEstudiante', array('local' => 'id_pais', 'foreign' => 'pais_nac_id'));
     $this->hasMany('HisRdeEstudiante', array('local' => 'id_pais', 'foreign' => 'pais_nac_id'));
 }
Example #21
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Aid as Aids', array('local' => 'id', 'foreign' => 'lecture_id'));
     $this->hasOne('Course', array('local' => 'course_id', 'foreign' => 'id', 'onDelete' => 'cascade'));
     $this->hasMany('Homework as Homeworks', array('local' => 'id', 'foreign' => 'lecture_id'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Encuestado', array('local' => 'id_encuestado', 'foreign' => 'id_encuestado'));
     $this->hasOne('CIngresoMateria', array('local' => 'select_tipo_materia3', 'foreign' => 'id_materia'));
     $this->hasOne('CIngresoCausa', array('local' => 'select_causa_delito3', 'foreign' => 'codigo_delito'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Usuario', array('local' => 'usuario_id', 'foreign' => 'id'));
     $timestampable0 = new Doctrine_Template_Timestampable();
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('ClaTipoTramite', array('local' => 'tipo_tramite_id', 'foreign' => 'id_tipo_tramite'));
     $this->hasMany('ClaTraProceso', array('local' => 'id_tramite', 'foreign' => 'tramite_id'));
     $this->hasMany('DatTraRegistro', array('local' => 'id_tramite', 'foreign' => 'tramite_id'));
 }
Example #25
0
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Utilisateur', array(
          'local' => 'id_agent',
          'foreign' => 'id_utilisateur'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('JobVacancy', array('local' => 'vacancyId', 'foreign' => 'id'));
     $this->hasOne('JobCandidate', array('local' => 'candidateId', 'foreign' => 'id'));
     $this->hasMany('JobInterview', array('local' => 'id', 'foreign' => 'candidateVacancyId'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Revision', array('local' => 'id', 'foreign' => 'revision_state_id'));
     $timestampable0 = new Doctrine_Template_Timestampable(array());
     $this->actAs($timestampable0);
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Encuesta', array('local' => 'id', 'foreign' => 'id_organizacion'));
     $this->hasMany('GrupoUsuario', array('local' => 'id', 'foreign' => 'id_organizacion'));
     $this->hasMany('UsuarioOrganizacion', array('local' => 'id', 'foreign' => 'id_organizacion'));
 }
 public function setUp()
 {
     parent::setUp();
     $this->hasOne('Book', array('local' => 'book_id', 'foreign' => 'book_id'));
     $this->hasOne('MetricParameters', array('local' => 'metric_id', 'foreign' => 'metric_id'));
     $this->hasOne('Students', array('local' => 'student_id', 'foreign' => 'student_id'));
 }
Example #30
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('Town as Towns', array(
          'local' => 'id',
          'foreign' => 'state_id'));
 }