Expected and Actual Behavior
Calling model::create() does an _exists() twice if the record doesn't exist.
|
if this->_exists(metaData, this->getReadConnection()) { |
|
let exists = this->_exists(metaData, readConnection); |
Details
- Phalcon version: (
php --ri phalcon) all the way to 4.0.x from 3.0.x
- PHP Version: (
php -v) any
- Operating System: any
- Installation type: any
- Zephir version (if any): none
- Server: any
- Other related info (Database, table schema): any
😞 😞
Expected and Actual Behavior
Calling model::create() does an _exists() twice if the record doesn't exist.
cphalcon/phalcon/Mvc/Model.zep
Line 964 in 2be495d
cphalcon/phalcon/Mvc/Model.zep
Line 2316 in 2be495d
Details
php --ri phalcon) all the way to 4.0.x from 3.0.xphp -v) any😞 😞