/** * Clear IdentityMap and LinkMap * * @return AbstractRepo $this */ public function clear() { $this->initializeOnce(); $this->identityMap->clear(); $this->linkMap->clear(); return $this; }