Inheritance: extends Phalcon\Mvc\Model
Example #1
0
 public function initialize()
 {
     $this->hasManyToMany('id', 'Eva\\Wiki\\Entities\\CategoriesCategories', 'categoryId', 'parentId', 'Eva\\Wiki\\Entities\\Categories', 'id', array('alias' => 'parents'));
     $this->hasManyToMany('id', 'Eva\\Wiki\\Entities\\CategoriesCategories', 'parentId', 'parentId', 'Eva\\Wiki\\Entities\\Categories', 'id', array('alias' => 'children'));
     parent::initialize();
 }
Example #2
0
 public function initialize()
 {
     $this->belongsTo('postId', 'Eva\\EvaBlog\\Entities\\Posts', 'id', array('alias' => 'Post'));
     parent::initialize();
 }
Example #3
0
 public function initialize()
 {
     $this->hasMany('categoryId', 'Eva\\Wiki\\Entities\\Categories', 'id', array('alias' => 'categories'));
     $this->hasOne('id', 'Eva\\Wiki\\Entities\\EntryTexts', 'entryId', array('alias' => 'text'));
     $this->belongsTo('userId', 'Eva\\EvaUser\\Entities\\Users', 'id', array('alias' => 'user'));
     $this->hasMany('id', 'Eva\\Wiki\\Entities\\CategoriesEntries', 'entryId', array('alias' => 'categoriesEntries'));
     $this->hasMany('id', 'Eva\\Wiki\\Entities\\EntryKeywords', 'entryId', array('alias' => 'keywords'));
     $this->hasManyToMany('id', 'Eva\\Wiki\\Entities\\CategoriesEntries', 'entryId', 'categoryId', 'Eva\\Wiki\\Entities\\Categories', 'id', array('alias' => 'categories'));
     parent::initialize();
 }
Example #4
0
 public function initialize()
 {
     $this->belongsTo('categoryId', 'Eva\\Wiki\\Entities\\Categories', 'id', array('alias' => 'category'));
     $this->belongsTo('parentId', 'Eva\\Wiki\\Entities\\Categories', 'id', array('alias' => 'parent'));
     parent::initialize();
 }
Example #5
0
 public function initialize()
 {
     $this->hasManyToMany('id', 'Eva\\EvaPermission\\Entities\\RolesOperations', 'roleId', 'operationId', 'Eva\\EvaPermission\\Entities\\Operations', 'id', array('alias' => 'operations'));
     parent::initialize();
 }
Example #6
0
 public function initialize()
 {
     $this->hasOne('id', 'Eva\\EvaUser\\Entities\\Profiles', 'userId', array('alias' => 'profile'));
     parent::initialize();
 }
Example #7
0
 public function initialize()
 {
     $this->belongsTo('userId', 'Eva\\EvaUser\\Entities\\Users', 'id', array('alias' => 'user'));
     parent::initialize();
 }
Example #8
0
 public function initialize()
 {
     $this->hasOne('id', 'Eva\\EvaBlog\\Entities\\Texts', 'postId', array('alias' => 'text'));
     $this->belongsTo('userId', 'Eva\\EvaUser\\Entities\\Users', 'id', array('alias' => 'user'));
     $this->hasMany('id', 'Eva\\EvaBlog\\Entities\\CategoriesPosts', 'postId', array('alias' => 'categoriesPosts'));
     $this->hasManyToMany('id', 'Eva\\EvaBlog\\Entities\\CategoriesPosts', 'postId', 'categoryId', 'Eva\\EvaBlog\\Entities\\Categories', 'id', array('alias' => 'categories'));
     $this->hasMany('id', 'Eva\\EvaBlog\\Entities\\TagsPosts', 'postId', array('alias' => 'tagsPosts'));
     $this->hasManyToMany('id', 'Eva\\EvaBlog\\Entities\\TagsPosts', 'postId', 'tagId', 'Eva\\EvaBlog\\Entities\\Tags', 'id', array('alias' => 'tags'));
     $this->hasMany('id', 'Eva\\EvaBlog\\Entities\\Connections', 'sourceId', array('alias' => 'postConnects'));
     $this->hasManyToMany('id', 'Eva\\EvaBlog\\Entities\\Connections', 'sourceId', 'targetId', 'Eva\\EvaBlog\\Entities\\Posts', 'id', array('alias' => 'connections'));
     $this->hasOne('imageId', 'Eva\\EvaFileSystem\\Entities\\Files', 'id', array('alias' => 'thumbnail'));
     parent::initialize();
 }
Example #9
0
 public function initialize()
 {
     $this->setReadConnectionService('userDbSlave');
     $this->setWriteConnectionService('userDbMaster');
     parent::initialize();
 }
Example #10
0
 public function initialize()
 {
     $this->hasManyToMany('id', 'Eva\\EvaPermission\\Entities\\RolesOperations', 'operationId', 'roleId', 'Eva\\EvaPermission\\Entities\\Roles', 'id', array('alias' => 'roles'));
     $this->belongsTo("resourceId", 'Eva\\EvaPermission\\Entities\\Resources', "id", array('alias' => 'resource'));
     parent::initialize();
 }
Example #11
0
 public function initialize()
 {
     $this->belongsTo('entryId', 'Eva\\Wiki\\Models\\Entry', 'id', array('alias' => 'entry'));
     parent::initialize();
 }
Example #12
0
 public function initialize()
 {
     $this->belongsTo('postId', 'Eva\\Wiki\\Entities\\Entries', 'id', array('alias' => 'Entry'));
     parent::initialize();
 }
Example #13
0
 public function initialize()
 {
     $this->belongsTo('userId', 'Eva\\EvaUser\\Entities\\Users', 'id', array('alias' => 'user'));
     $this->hasOne('id', 'Eva\\EvaLivenews\\Entities\\Texts', 'newsId', array('alias' => 'text'));
     $this->hasMany('id', 'Eva\\EvaLivenews\\Entities\\CategoriesNews', 'newsId', array('alias' => 'categoriesNews'));
     $this->hasManyToMany('id', 'Eva\\EvaLivenews\\Entities\\CategoriesNews', 'newsId', 'categoryId', 'Eva\\EvaLivenews\\Entities\\Categories', 'id', array('alias' => 'categories'));
     parent::initialize();
 }
Example #14
0
 public function initialize()
 {
     $this->belongsTo('topicId', 'Eva\\EvaBlog\\Entities\\Topics', 'id', array('alias' => 'topic'));
     parent::initialize();
 }
Example #15
0
 public function initialize()
 {
     $this->belongsTo('newsId', 'Eva\\EvaLivenews\\Entities\\News', 'id', array('alias' => 'News'));
     parent::initialize();
 }
Example #16
0
 public function initialize()
 {
     $this->belongsTo('makerId', 'Eva\\EvaMovie\\Entities\\Makers', 'id', array('alias' => 'maker'));
     $this->belongsTo('seriesId', 'Eva\\EvaMovie\\Entities\\Series', 'id', array('alias' => 'series'));
     $this->hasMany('id', 'Eva\\EvaMovie\\Entities\\MoviesCasts', 'movieId', array('alias' => 'moviesCasts'));
     $this->hasManyToMany('id', 'Eva\\EvaMovie\\Entities\\MoviesCasts', 'movieId', 'staffId', 'Eva\\EvaMovie\\Entities\\Staffs', 'id', array('alias' => 'casts'));
     $this->hasMany('id', 'Eva\\EvaMovie\\Entities\\MoviesDirectors', 'movieId', array('alias' => 'moviesDirectors'));
     $this->hasManyToMany('id', 'Eva\\EvaMovie\\Entities\\MoviesDirectors', 'movieId', 'staffId', 'Eva\\EvaMovie\\Entities\\Staffs', 'id', array('alias' => 'directors'));
     parent::initialize();
 }
Example #17
0
 public function initialize()
 {
     $this->hasOne('id', 'Eva\\EvaBlog\\Entities\\TopicTexts', 'topicId', array('alias' => 'text'));
     $this->belongsTo('userId', 'Eva\\EvaUser\\Entities\\Users', 'id', array('alias' => 'user'));
     $this->hasMany('id', 'Eva\\EvaBlog\\Entities\\TopicsTags', 'topicId', array('alias' => 'topicsTags'));
     $this->hasManyToMany('id', 'Eva\\EvaBlog\\Entities\\TopicsTags', 'topicId', 'tagId', 'Eva\\EvaBlog\\Entities\\Tags', 'id', array('alias' => 'tags'));
     $this->hasOne('imageId', 'Eva\\EvaFileSystem\\Entities\\Files', 'id', array('alias' => 'thumbnail'));
     parent::initialize();
 }