Skip to content

Calling model::create() does an _exists() twice if the record doesn't exist #14256

@maxgalbu

Description

@maxgalbu

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

😞 😞

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions