Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Allow to run Model::countBy method with uncached parameter #5973

Closed
Serhii-DV opened this issue Jul 13, 2013 · 1 comment
Closed

Allow to run Model::countBy method with uncached parameter #5973

Serhii-DV opened this issue Jul 13, 2013 · 1 comment
Labels
Milestone

Comments

@Serhii-DV
Copy link
Contributor

As a simple example, run this code in demo:

$intCount1 = \PageModel::countAll();
\Database::getInstance()->query("DELETE `tl_page` WHERE `id`=2");
$intCount2 = \PageModel::countAll();

You will see that $intCount1 === $intCount2. But should be $intCount1 > $intCount2.

@leofeyer
Copy link
Member

Fixed in aacbe4e.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants