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