public function get($key) { if ($this->hasProperty($key)) { return parent::get($key); } if (array_key_exists($key, $this->settings)) { return $this->settings[$key]; } return parent::get($key); }
public function get($key) { if ($this->hasRelation($key)) { if ($id = $this->get($key . '_id')) { $class = $this->getRelationClass($key); $object = $class::loadWithAutoIncId($id, $this->connection); return $object->object_name; } return null; } return parent::get($key); }