Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->addRelation(wOrm::ONE_TO_MANY, array('column' => 'id', 'foreignClass' => 'Commentaire', 'foreignColumn' => 'article_id'));
     $this->addRelation(wOrm::MANY_TO_MANY, array('column' => 'id', 'foreignClass' => 'Tag', 'foreignColumn' => 'id', 'relationClass' => 'ArticleTag'));
 }