Now we can use the setAttribute() method to enable portability for lowercasing and trimming with the following code:
// bootstrap.php
// ...
$conn->setAttribute(Doctrine_Core::ATTR_PORTABILITY,
Doctrine_Core::PORTABILITY_FIX_CASE | Doctrine_Core::PORTABILITY_RTRIM);
Enable all portability options except trimming
// bootstrap.php
// ...
$conn->setAttribute(Doctrine_Core::ATTR_PORTABILITY,
Doctrine_Core::PORTABILITY_ALL ^ Doctrine_Core::PORTABILITY_RTRIM);