public function setAuthorId($nick) { $person = new DbPerson($nick); if (!$person->exists()) { return; } $this->authorId = $person->getNumericId(); }