public function setBaseType($baseType)
    {
        if ($baseType === -1 && $this->isRecord() === false) {
            $msg = "You are forced to specify a baseType if cardinality is not RECORD.";
            throw new InvalidArgumentException($msg);
        }

        $this->baseType = $baseType;
    }