This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
2012-12-21 12:59:09 +11:00

495 B

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);