Skip to content

Commit

Permalink
Added missed ModelInterface::getModelsMetaData
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Jun 6, 2018
1 parent b67f696 commit c0a712b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG-4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
## Added
- Added `Phalcon\Db\Adapter\Pdo\Postgresql::describeReferences` to implement custom Postgresql rules
- Added `Phalcon\Mvc\Router\RouteInterface::convert` so that calling `Phalcon\Mvc\Router\Group::add` will return an instance that has `convert` method [#13380](https://github.com/phalcon/cphalcon/issues/13380)
- Added `Phalcon\Mvc\ModelInterface::getModelsMetaData` [#13070](https://github.com/phalcon/cphalcon/issues/13402)

## Changed
- The `Phalcon\Mvc\Application`, `Phalcon\Mvc\Micro` and `Phalcon\Mvc\Router` now must have a URI to process [#12380](https://github.com/phalcon/cphalcon/pull/12380)
- Response headers and cookies are no longer prematurely sent [#12378](https://github.com/phalcon/cphalcon/pull/12378)
- You can no longer assign data to models whilst saving them [#12317](https://github.com/phalcon/cphalcon/issues/12317)
- The `Phalcon\Mvc\Model\Manager::load` no longer reuses already initialized models [#12317](https://github.com/phalcon/cphalcon/issues/12317)
- Changed `Phalcon\Db\Dialect\Postgresql::describeReferences` to generate correct SQL, added "on update" and "on delete" constraints
- Change catch `Exception` to `Throwable` [#12288](https://github.com/phalcon/cphalcon/issues/12288)
- Changed catch `Exception` to `Throwable` [#12288](https://github.com/phalcon/cphalcon/issues/12288)
- Changed `Phalcon\Mvc\Model\Query\Builder::addFrom` to remove third parameter `$with` [#13109](https://github.com/phalcon/cphalcon/pull/13109)

## Removed
Expand Down
2 changes: 1 addition & 1 deletion phalcon/mvc/model.zep
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ abstract class Model implements EntityInterface, ModelInterface, ResultInterface
}

/**
* Returns the models meta-data service related to the entity instance
* {@inheritdoc}
*/
public function getModelsMetaData() -> <MetaDataInterface>
{
Expand Down
5 changes: 5 additions & 0 deletions phalcon/mvc/modelinterface.zep
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use Phalcon\Mvc\Model\CriteriaInterface;
use Phalcon\Mvc\Model\TransactionInterface;
use Phalcon\Mvc\Model\MessageInterface;
use Phalcon\Mvc\Model\ResultsetInterface;
use Phalcon\Mvc\Model\MetaDataInterface;

/**
* Phalcon\Mvc\ModelInterface
Expand All @@ -33,6 +34,10 @@ use Phalcon\Mvc\Model\ResultsetInterface;
*/
interface ModelInterface
{
/**
* Returns the models meta-data service related to the entity instance.
*/
public function getModelsMetaData() -> <MetaDataInterface>;

/**
* Sets a transaction related to the Model instance
Expand Down

0 comments on commit c0a712b

Please sign in to comment.