$this->_conn->execute('UPDATE optimistic_timestamp SET version = ? WHERE id = ?',array(date($format,strtotime($test->version->format($format))+3600),$test->id));
$this->_conn->executeQuery('UPDATE optimistic_timestamp SET version = ? WHERE id = ?',array(date($format,strtotime($test->version->format($format))+3600),$test->id));
// Try and update the record and it should throw an exception
@@ -144,7 +144,7 @@ class OneToOneBidirectionalAssociationTest extends \Doctrine\Tests\OrmFunctional
}
publicfunctionassertCartForeignKeyIs($value){
$foreignKey=$this->_em->getConnection()->execute('SELECT customer_id FROM ecommerce_carts WHERE id=?',array($this->cart->getId()))->fetchColumn();
$foreignKey=$this->_em->getConnection()->executeQuery('SELECT customer_id FROM ecommerce_carts WHERE id=?',array($this->cart->getId()))->fetchColumn();
@@ -110,7 +110,7 @@ class OneToOneSelfReferentialAssociationTest extends \Doctrine\Tests\OrmFunction
}
publicfunctionassertForeignKeyIs($value){
$foreignKey=$this->_em->getConnection()->execute('SELECT mentor_id FROM ecommerce_customers WHERE id=?',array($this->customer->getId()))->fetchColumn();
$foreignKey=$this->_em->getConnection()->executeQuery('SELECT mentor_id FROM ecommerce_customers WHERE id=?',array($this->customer->getId()))->fetchColumn();
@@ -99,7 +99,10 @@ class OneToOneUnidirectionalAssociationTest extends \Doctrine\Tests\OrmFunctiona
}
publicfunctionassertForeignKeyIs($value){
$foreignKey=$this->_em->getConnection()->execute('SELECT shipping_id FROM ecommerce_products WHERE id=?',array($this->product->getId()))->fetchColumn();