public function endGroup()
 {
     $oldGroup = $this->currentGroup;
     parent::endGroup();
     if ($oldGroup instanceof \PHPixie\ORM\Conditions\Condition\Collection\RelatedTo) {
         array_pop($this->modelNameStack);
         $this->currentModelName = end($this->modelNameStack);
     }
     return $this;
 }
 public function __construct($conditions, $defaultOperator = '=')
 {
     $this->conditions = $conditions;
     parent::__construct($defaultOperator);
 }