Example #1
0
 protected function constrainQueryToSelf($query)
 {
     if ($this->isDirty('site_id')) {
         throw new LogicException('Cannot modify site_id.');
     }
     $query->filter('site_id', $this->site_id);
     parent::constrainQueryToSelf($query);
 }