Exemple #1
0
 public function relations()
 {
     // NOTE: you may need to adjust the relation name and the related
     // class name for the relations automatically generated below.
     $sociedadRules = array('idsociedadtipo0' => array(self::BELONGS_TO, 'Sociedadtipo', 'idsociedadtipo'), 'socios' => array(self::HAS_MANY, 'Participacion', 'idsociedad'));
     return array_merge(parent::relations(), $sociedadRules);
 }