Nextras\Orm\Model\Model::clearIdentityMapAndCaches PHP Method

clearIdentityMapAndCaches() public method

public clearIdentityMapAndCaches ( $areYouSure )
    public function clearIdentityMapAndCaches($areYouSure)
    {
        if ($areYouSure !== self::I_KNOW_WHAT_I_AM_DOING) {
            throw new LogicException('Use this method only if you are sure what are you doing.');
        }
        foreach ($this->getLoadedRepositories() as $repository) {
            $repository->doClearIdentityMap($areYouSure);
        }
    }