2 namespace Doctrine\Tests\ORM\Functional\Ticket;
4 require_once __DIR__ . '/../../../TestInit.php';
6 use DateTime, Doctrine\DBAL\Types\Type;
8 class DDC425Test extends \Doctrine\Tests\OrmFunctionalTestCase
10 protected function setUp()
13 $this->_schemaTool->createSchema(array(
14 $this->_em->getClassMetadata(__NAMESPACE__ . '\DDC425Entity'),
15 //$this->_em->getClassMetadata(__NAMESPACE__ . '\DDC425Other')
22 public function testIssue()
24 //$this->_em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger);
26 $num = $this->_em->createQuery('DELETE '.__NAMESPACE__.'\DDC425Entity e WHERE e.someDatetimeField > ?1')
27 ->setParameter(1, new DateTime, Type::DATETIME)
29 $this->assertEquals(0, $num);
36 * @Id @Column(type="integer")
41 /** @Column(type="datetime") */
42 public $someDatetimeField;