cakephp/cakephp — pull request #2735 by Grafikart (2014-01-29 20:27:00+00:00)
Title: Add Table alias before primarykeys for Table::get()

If get() method is used with contain there is a risk of having a integrity constraint violation :

## Case

$posts->get(1, ['contain' => ['Categories']]);
// Was generating
where(['id' => 1]) // ... 1052 Column 'id' in where clause is ambiguous
// Generates now
where(['Posts.id' => 1])

Not sure if it is the best way. Maybe we could use the Query to check this kind of problem.