/** * @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; }
public function testThatUpdateSetsFields() { $this->expectQuery('UPDATE test SET field2=? WHERE key=?'); $this->entityFinder->where('key=?')->update(['field2' => 'foobar']); $this->entityManager->commit(); }