function __construct($ownerTypeID, \CUser $user = null) { $this->ownerTypeID = CCrmOwnerType::IsDefined($ownerTypeID) ? $ownerTypeID : CCrmOwnerType::Undefined; parent::__construct(CCrmOwnerType::ResolveUserFieldEntityID($this->ownerTypeID), $user); $this->setNamePrefix('crm'); }