You are currently reading the 1.2 documentation. Switch to 2.2  2.1  2.0 

Examples

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);

Questions and Feedback

If you find a problem with the documentation or have a suggestion, please register and open a ticket.

If you need support or have a technical question, you can post to the user mailing-list.