Skip to content
Permalink
Browse files

Alter model exists to consider useTable

  • Loading branch information...
tanuck committed Aug 16, 2015
1 parent 979820b commit 90a77f6ce5b6b6b39c9d643a79f43ec99143c383
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Cake/Model/Model.php
@@ -2895,6 +2895,10 @@ public function exists($id = null) {
return false;
}
if ($this->useTable === false) {
return true;
}
return (bool)$this->find('count', array(
'conditions' => array(
$this->alias . '.' . $this->primaryKey => $id

0 comments on commit 90a77f6

Please sign in to comment.
You can’t perform that action at this time.