1
0
mirror of synced 2024-12-13 06:46:03 +03:00

By default mysql connection doesn't use DQL record limit (it doesn't support limit in subqueries yet)

This commit is contained in:
zYne 2006-08-30 07:18:02 +00:00
parent 85a799eaaa
commit fb77e2f5d4

View File

@ -11,6 +11,7 @@ class Doctrine_Connection_Mysql extends Doctrine_Connection_Common {
*/
public function __construct(Doctrine_Manager $manager,PDO $pdo) {
$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
$this->setAttribute(Doctrine::ATTR_QUERY_LIMIT, Doctrine::LIMIT_ROWS);
parent::__construct($manager,$pdo);
}
/**