public function getBasePeer()
    {
        if ($this->isAlias() && $this->basePeer === null) {
            return $this->alias . "Peer";
        } elseif ($this->basePeer === null) {
            return $this->getDatabase()->getBasePeer();
        } else {
            return $this->basePeer;
        }
    }