3 namespace Doctrine\Tests\ORM\Functional\Ticket;
5 use Doctrine\Common\Collections\ArrayCollection;
6 use Doctrine\Tests\Models\CMS\CmsUser;
7 use Doctrine\Tests\Models\CMS\CmsGroup;
9 require_once __DIR__ . '/../../../TestInit.php';
11 class DDC933Test extends \Doctrine\Tests\OrmFunctionalTestCase
13 public function setUp()
15 $this->useModelSet('company');
22 public function testLockCTIClass()
24 //$this->_em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger());
26 $manager = new \Doctrine\Tests\Models\Company\CompanyManager();
27 $manager->setName('beberlei');
28 $manager->setSalary(1234);
29 $manager->setTitle('Vice Precident of This Test');
30 $manager->setDepartment("Foo");
32 $this->_em->persist($manager);
35 $this->_em->beginTransaction();
36 $this->_em->lock($manager, \Doctrine\DBAL\LockMode::PESSIMISTIC_READ);
37 $this->_em->rollback();