Exemplo n.º 1
0
 /**
  * @param string $alias Alias to use for the table name in the query
  *
  * @return EntityFinder
  */
 public function find($alias = null)
 {
     $finder = new EntityFinder($this->manager, $this->manager->getDriver(), $this);
     if ($alias !== null) {
         $finder->alias($alias);
     }
     return $finder;
 }
Exemplo n.º 2
0
 public function testThatUpdateSetsFields()
 {
     $this->expectQuery('UPDATE test SET field2=? WHERE key=?');
     $this->entityFinder->where('key=?')->update(['field2' => 'foobar']);
     $this->entityManager->commit();
 }