예제 #1
0
 /**
  * @param Garp_Spawn_Model_Base $model      The base model this habtm model is connected to
  * @param Garp_Spawn_Relation   $habtmRelation   The accompanying HasAndBelongsToMany relation
  */
 public function __construct(Garp_Spawn_Model_Base $model, Garp_Spawn_Relation $habtmRelation)
 {
     parent::__construct($model);
     $this->setRelation($habtmRelation);
 }
예제 #2
0
 /**
  * @param   Garp_Spawn_Model_Base   $model      The base model this habtm model is connected to
  * @param   String                  $locale     F.i.: 'en' or 'nl'
  */
 public function __construct(Garp_Spawn_Model_Base $model, $locale)
 {
     parent::__construct($model);
     $this->setLocale($locale);
 }