Skip to content

Commit

Permalink
Refactored Model, added Loader::isRegistered [#16391]
Browse files Browse the repository at this point in the history
  • Loading branch information
rudiservo committed Aug 6, 2023
1 parent 6c65a50 commit 837dcd6
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 197 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## [5.2.4](https://github.com/phalcon/cphalcon/releases/tag/v5.2.4) (xxxx-xx-xx)

### Added
- Added `Phalcon\Mvc\Model::appendMessagedFrom` for code consistency and to add messages from another another model. [#16391](https://github.com/phalcon/cphalcon/issues/16391)
- Added `Phalcon\Autoload\Loader::isRegistered` for debugging purposes [#16391](https://github.com/phalcon/cphalcon/issues/16391)

### Changed
- Refactored `Phalcon\Mvc\Model::doLowUpdate` and `Phalcon\Mvc\Model::postSaveRelatedRecords` for better code logic and a clearer seperation of behaviour although it lead to partially repeated code.[#16391](https://github.com/phalcon/cphalcon/issues/16391)

### Fixed

- Parse multipart/form-data from PUT request [#16271](https://github.com/phalcon/cphalcon/issues/16271)
Expand Down
10 changes: 10 additions & 0 deletions phalcon/Autoload/Loader.zep
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,16 @@ class Loader extends AbstractEventsAware
return this;
}

/**
* returns isRegister
*
* @return bool
*/
public function isRegistered() -> bool
{
return this->isRegistered;
}

/**
* If the file exists, require it and return true; false otherwise
*
Expand Down
Loading

0 comments on commit 837dcd6

Please sign in to comment.