Phalcon\Mvc\Model\MetaData\Base::prepareKey PHP Method

prepareKey() protected method

Returns the key with a prefix or other changes
protected prepareKey ( string $key ) : string
$key string
return string
    protected function prepareKey($key)
    {
        return $this->options['prefix'] . $key;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  *
  * @param  string $key
  * @return string
  */
 protected function prepareKey($key)
 {
     return str_replace('\\', ':', parent::prepareKey($key));
 }