Imagine i want to search a phone number in my DB but they are saved with different formats
Exemple : 12345678 13.36.15.36 13.654.365
What is the best way with doctrine to find a given phone.
I wish i could do something like this
Doctrine_Core::getTable('user')->create('u')->where(str_replace('.', '', u.phone) = ?, $phone)
Is there some kind of way to achieve this ?