/**
* @param int $p_typeId
* @return void
*/
public function setType($p_typeId = NULL)
{
if (is_null($p_typeId)) {
$p_typeId = $this->__getDefaultType();
}
$assignedType = new AuthorAssignedType($this->getId(), (int) $p_typeId);
if (!$assignedType->exists()) {
$assignedType->create();
}
return (int) $assignedType->getAuthorTypeId();
}