Exemplo n.º 1
0
 /**
  * @param string $column
  * @param mixed  $value
  * @return void
  */
 public function whereRootFieldEq($column, $value)
 {
     $qualified = $this->aliases->get($this->getRootId()) . '.' . $column;
     $param = ':' . $this->aliases->get($this->getRootId()) . $column;
     $this->builder->andWhere($this->builder->expr()->eq($qualified, $param));
     $this->builder->setParameter($param, $value);
 }
Exemplo n.º 2
0
 public function testGetSameInitial()
 {
     $sut = new AliasGenerator();
     $foo = $sut->get('foo');
     $freak = $sut->get('freak');
     $f**k = $sut->get('f**k');
     $this->assertNotEquals($foo, $freak);
     $this->assertNotEquals($freak, $f**k);
     $this->assertNotEquals($f**k, $foo);
 }