public function getConnection($type = Propel::CONNECTION_READ)
    {
        $databaseName = constant($this->getPeerClass() . '::DATABASE_NAME');

        return Propel::getConnection($databaseName, $type);
    }