Пример #1
0
 /**
  * Clear IdentityMap and LinkMap
  *
  * @return AbstractRepo $this
  */
 public function clear()
 {
     $this->initializeOnce();
     $this->identityMap->clear();
     $this->linkMap->clear();
     return $this;
 }
Пример #2
0
 /**
  * @covers ::get
  * @expectedException InvalidArgumentException
  */
 public function testInvalidModel()
 {
     $map = new LinkMap(Model::getRepo());
     $model = new ModelOther();
     $map->get($model);
 }