This version is outdated. You should upgrade your project to Mako 9.1 or Mako 10.0!
Getting started

Upgrading



This guide takes you through the steps needed to migrate from Mako 5.6.x to 5.7.x.


Framework

Security

Gatekeeper

The forceLogin method will now return true when a login is successful and a status code instead of false when the login fails.

Password hashing

The mako\security\Password class has been removed. If you were using it they you'll have to update your code to use the new password hashing library introduced in 5.6.0.

Database

Query builder

The JSON representation of a result set returned by the Query::paginate() method will now be an object where the results are available as data and pagination information will be available as pagination. See the query builder documentation for more details.

ORM

The ORM::$exists property and ORM::exists() method has been removed. Use ORM::$isPersisted and ORM::isPersisted() instead.