private function with($objectName) { if (!property_exists($this, 'relations') && !isset($this->relations[$name])) { die("No relation with name {$objectName} found"); } $this->_with[$objectName] = $this->relations[$objectName]; return $this; }