public function convertAliasToInteger() { if ($this->alias) { return $this->alias->getId(); } return null; }