1
0
mirror of synced 2025-02-21 14:43:14 +03:00

deprecated metadata quote methods

This commit is contained in:
Fabio B. Silva 2012-06-04 14:34:35 -03:00
parent 4ef3d99770
commit fabfb66293
2 changed files with 11 additions and 5 deletions

View File

@ -638,7 +638,7 @@ class Configuration extends \Doctrine\DBAL\Configuration
*/ */
public function setQuoteStrategyClassName($className) public function setQuoteStrategyClassName($className)
{ {
$quoteStrategy = 'Doctrine\ORM\Mapping\AbstractQuoteStrategy'; $quoteStrategy = 'Doctrine\ORM\Mapping\QuoteStrategy';
if ($className !== $quoteStrategy && ! is_subclass_of($className, $quoteStrategy)) { if ($className !== $quoteStrategy && ! is_subclass_of($className, $quoteStrategy)) {
throw new \InvalidArgumentException("Invalid quote strategy class"); throw new \InvalidArgumentException("Invalid quote strategy class");

View File

@ -2646,6 +2646,8 @@ class ClassMetadataInfo implements ClassMetadata
/** /**
* Gets the (possibly quoted) identifier column names for safe use in an SQL statement. * Gets the (possibly quoted) identifier column names for safe use in an SQL statement.
* *
* @deprecated Deprecated since version 2.3 in favor of \Doctrine\ORM\Mapping\QuoteStrategy
*
* @param AbstractPlatform $platform * @param AbstractPlatform $platform
* @return array * @return array
*/ */
@ -2680,8 +2682,9 @@ class ClassMetadataInfo implements ClassMetadata
} }
/** /**
* Gets the (possibly quoted) column name of a mapped field for safe use * Gets the (possibly quoted) column name of a mapped field for safe use in an SQL statement.
* in an SQL statement. *
* @deprecated Deprecated since version 2.3 in favor of \Doctrine\ORM\Mapping\QuoteStrategy
* *
* @param string $field * @param string $field
* @param AbstractPlatform $platform * @param AbstractPlatform $platform
@ -2695,8 +2698,9 @@ class ClassMetadataInfo implements ClassMetadata
} }
/** /**
* Gets the (possibly quoted) primary table name of this class for safe use * Gets the (possibly quoted) primary table name of this class for safe use in an SQL statement.
* in an SQL statement. *
* @deprecated Deprecated since version 2.3 in favor of \Doctrine\ORM\Mapping\QuoteStrategy
* *
* @param AbstractPlatform $platform * @param AbstractPlatform $platform
* @return string * @return string
@ -2709,6 +2713,8 @@ class ClassMetadataInfo implements ClassMetadata
/** /**
* Gets the (possibly quoted) name of the join table. * Gets the (possibly quoted) name of the join table.
* *
* @deprecated Deprecated since version 2.3 in favor of \Doctrine\ORM\Mapping\QuoteStrategy
*
* @param AbstractPlatform $platform * @param AbstractPlatform $platform
* @return string * @return string
*/ */