public function initialize() { parent::initialize(); $this->belongsTo('advertiser_id', 'App\\Models\\Users', 'id', array('alias' => 'advertiser')); $this->hasManyToMany("id", 'App\\Models\\BannersZones', "banner_id", "zone_id", 'App\\Models\\Zones', "id", array('alias' => 'zones')); $this->hasMany('id', 'App\\Models\\Views', 'banner_id', array('alias' => 'views', 'foreignKey' => array('action' => \Phalcon\Mvc\Model\Relation::ACTION_CASCADE))); }
public function initialize() { parent::initialize(); $this->hasMany('id', __NAMESPACE__ . '\\Tokens', 'user_id', array('alias' => 'Tokens', 'foreignKey' => array('action' => \Phalcon\Mvc\Model\Relation::ACTION_CASCADE))); }
public function __construct() { parent::__construct('relation'); }
public function __construct() { parent::__construct('user'); }
public function __construct() { parent::__construct('truck'); }
public function __construct() { parent::__construct('price'); }
public function __construct() { parent::__construct('product'); }