X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Form%2Flib%2FDoctrine%2FORM%2FMapping%2FNamingStrategy.php;fp=vendor%2Fdoctrine%2Form%2Flib%2FDoctrine%2FORM%2FMapping%2FNamingStrategy.php;h=a6acac2556d2a5b1c4a59d8bea77b4133c1926d2;hb=8b04b2d11798dee4f3e1358e4f43e97a6df851f6;hp=0000000000000000000000000000000000000000;hpb=73568cf05a785a45f94ca3f2351d9e07bf917958;p=zf2.biz%2Fapplication_blanche.git diff --git a/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/NamingStrategy.php b/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/NamingStrategy.php new file mode 100644 index 0000000..a6acac2 --- /dev/null +++ b/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/NamingStrategy.php @@ -0,0 +1,82 @@ +. + */ + +namespace Doctrine\ORM\Mapping; + +/** + * A set of rules for determining the physical column and table names + * + * + * @link www.doctrine-project.org + * @since 2.3 + * @author Fabio B. Silva + */ +interface NamingStrategy +{ + /** + * Return a table name for an entity class + * + * @param string $className The fully-qualified class name + * @return string A table name + */ + function classToTableName($className); + + /** + * Return a column name for a property + * + * @param string $propertyName A property + * @return string A column name + */ + function propertyToColumnName($propertyName); + + /** + * Return the default reference column name + * + * @return string A column name + */ + function referenceColumnName(); + + /** + * Return a join column name for a property + * + * @param string $propertyName A property + * @return string A join column name + */ + function joinColumnName($propertyName); + + /** + * Return a join table name + * + * @param string $sourceEntity The source entity + * @param string $targetEntity The target entity + * @param string $propertyName A property + * @return string A join table name + */ + function joinTableName($sourceEntity, $targetEntity, $propertyName = null); + + /** + * Return the foreign key column name for the given parameters + * + * @param string $entityName A entity + * @param string $referencedColumnName A property + * @return string A join column name + */ + function joinKeyColumnName($entityName, $referencedColumnName = null); +}