change compatibility for propel2

This commit is contained in:
Manuel Raynaud
2013-07-05 15:59:41 +02:00
parent 02c9184e53
commit 85bb7594ee
3 changed files with 4 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Thelia\Core\Event\CustomRefEvent;
use Thelia\Core\Event\TheliaEvents;
use Propel\Runtime\Connection\ConnectionInterface;
class Customer extends BaseCustomer {
/**
@@ -61,7 +62,7 @@ class Customer extends BaseCustomer {
}
public function preInsert(\PropelPDO $con = null)
public function preInsert(ConnectionInterface $con = null)
{
$customerRef = new CustomRefEvent($this);
if (!is_null($this->dispatcher)) {