public function many2one() { return $this->attributes[$this->attribute] = new self::$classMap['many2one']($this->attribute, $this->entity); }