protected function init() { if ($this->context && $this->context->getActiveQuery() !== $this) { $this->context->setActiveQuery($this); $this->initClauses(); $this->contextAttached(); } }