mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Changing Model::hasAny() to not query associations (Ticket #2816)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5825 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
2eec6dc943
commit
bc28d91b40
1 changed files with 1 additions and 1 deletions
|
@ -1405,7 +1405,7 @@ class Model extends Overloadable {
|
|||
* @return boolean True if such a record exists
|
||||
*/
|
||||
function hasAny($conditions = null) {
|
||||
return ($this->findCount($conditions) != false);
|
||||
return ($this->findCount($conditions, -1) != false);
|
||||
}
|
||||
/**
|
||||
* Return a single row as a resultset array.
|
||||
|
|
Loading…
Reference in a new issue