public function __construct(KernelInterface $kernel, array $configuration = array())
 {
     $configuration = array_merge(array('case' => CASE_LOWER, 'map' => array(), 'whitelist' => array(), 'blacklist' => array(), 'joinTableFieldSuffix' => true), $configuration);
     if (count($configuration['whitelist']) > 0 && count($configuration['blacklist']) > 0) {
         throw new \RuntimeException('You can use whitelist or blacklist or none of mentioned lists, but not booth.');
     }
     parent::__construct($configuration['case']);
     $this->buildMap($kernel, $configuration);
     $this->joinTableFieldSuffix = $configuration['joinTableFieldSuffix'];
 }
 /**
  * Constructor.
  *
  * Prefix is given by injection, set in app/config/parameters.yml.
  *
  * @param string $prefix
  */
 public function __construct($prefix = "ps_")
 {
     parent::__construct(CASE_LOWER);
     $this->prefix = $prefix;
 }