Skip to content

phps-cans/quote-strategy.doctrine.escaping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Escaping Quote Strategy for Doctrine

As said in Doctrine Documentation is you want to use protected keywords for table or column name you will have to explicitly use ticks in the definition.

This will break NamingStrategy provide by doctrine and required you to know what words are protected in the database you use.

With this implementation of the QuoteStrategy interface you will not have to bother with it anymore.

Just add our EscapingQuoteStrategy to Doctrine configuration :

$configuration->setQuoteStrategy(new EscapingQuoteStrategy());

About

Auto escaping quote strategy for doctrine

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages