Update naming strategy since Doctrine 2.5

See 20fb8270dc
This commit is contained in:
Jeremy Benoist 2015-05-30 13:40:39 +02:00
parent 9a014e48d6
commit 2f3c816579

View file

@ -72,4 +72,12 @@ class PrefixedNamingStrategy implements NamingStrategy
{ {
return strtolower($this->classToTableName($entityName) . '_' .($referencedColumnName ?: $this->referenceColumnName())); return strtolower($this->classToTableName($entityName) . '_' .($referencedColumnName ?: $this->referenceColumnName()));
} }
/**
* {@inheritdoc}
*/
public function embeddedFieldToColumnName($propertyName, $embeddedColumnName, $className = null, $embeddedClassName = null)
{
return $propertyName.'_'.$embeddedColumnName;
}
} }