concrete5/concrete5 — pull request #739 by Remo (2012-11-03 10:09:36+00:00)
Title: less queries when fetch page object

As already mentioned here, I find it a bit unexpected that a method
which only returns a version ID returns this from a different object
than specified in the input parameters.
However, I didn't really change that behaviour, instead I replaced
it in Page::getByID to make sure need one query less. Page::getByID
is an often used method and deserves some tuning.

http://www.concrete5.org/developers/bugs/5-6-0-2/less-sql-queries-when-fetching-page-object/