Doctrine Naming Strategy in Zend Framework 2

Database Table Prefixes are easy to configure with the Doctrine Naming Strategies.
Just create and register a new Strategy in your global config:

config/autoload/global.php

<?php
 
 
namespace Album\Doctrine\Strategy;
 
 
use Doctrine\ORM\Mapping\DefaultNamingStrategy;
 
class PrefixNamingStrategy extends DefaultNamingStrategy
{
    /**
     * {@inheritdoc}
     */
    public function classToTableName($className)
    {
        return '_' . substr($className, strrpos($className, '\\') + 1);
    }
}
<?php
return array(
     /* ... */
    'doctrine' => array(
        'configuration' => array(
            'orm_default' => array(
                'naming_strategy' => new \Album\Doctrine\Strategy\PrefixNamingStrategy()
            ),
        ),
 
    ),
   /* ... */  
);

References:
Doctrine Manual Implementing a NamingStrategy