Please sign in to comment.
Refactoring Model::exists() to be independent of Model::$useTable. Fi…
…xes #199. Model::exists() now makes no check whatsoever on the value of Model::$useTable. This means that, as with a database-backed dbo, Model::exists() will call Model::find('count') (which in turn calls DataSource::read()) to determine if the record identified by Model::$id already exists in the datasource.
- Loading branch information...
Showing with 30 additions and 2 deletions.