Orm

Upgrading

Table aliases

ORM will now alias the main table in a query to the model’s singular object name. i.e. Prior to 3.2 ORM set the from table like so:

$this->_db_builder->from($this->_table_name);

As of 3.2 it is now aliased like so:

$this->_db_builder->from(array($this->_table_name, $this->_object_name));

If you have a model Model_Order then when building a query use the alias like so:

$model->where('order.id', '=', $id);

Do you want to contribute to Koseven?

We need YOUR help!

This project is open source. What does this mean? YOU can help:
  • Found a bug? Report it on Github
  • Need a feature? Add it Here
  • Want to help? Join the Forum
Go to Github