public function relations() { return array_merge(parent::relations(), array('list' => array(self::BELONGS_TO, 'X2List', array('listId' => 'nameId')), 'attachments' => array(self::HAS_MANY, 'CampaignAttachment', 'campaign'))); }
/** * @return array relational rules. */ public function relations() { return array_merge(parent::relations(), array('workflow' => array(self::BELONGS_TO, 'Workflow', 'workflowId'), 'workflowStage' => array(self::BELONGS_TO, 'WorkflowStage', 'stageNumber'), 'actionMetaData' => array(self::HAS_ONE, 'ActionMetaData', 'actionId'), 'actionText' => array(self::HAS_ONE, 'ActionText', 'actionId'))); }
/** * @return array relational rules. */ public function relations() { // NOTE: you may need to adjust the relation name and the related // class name for the relations automatically generated below. return array_merge(parent::relations(), array('products' => array(self::HAS_MANY, 'QuoteProduct', 'quoteId', 'order' => 'lineNumber ASC'), 'contact' => array(self::BELONGS_TO, 'Contacts', array('associatedContacts' => 'nameId')))); }
/** * @return array relational rules. */ public function relations() { return array_merge(parent::relations(), array('order' => array(self::HAS_MANY, 'QuoteProduct', 'productId'))); }
/** * @return array relational rules. */ public function relations() { // NOTE: you may need to adjust the relation name and the related // class name for the relations automatically generated below. return array_merge(parent::relations(), array()); }