Notice: This thread is very old.
- Member | 34
Consider having two tables
A B -- -- id id name a_id
When I do
$a = $db->table('A')->where(':B.name = ?', 'something')->fetch(); $a->id;
I get value from
B.id instead of
A.id as I would
This is happening for all columns with the same names in both tables.
Am I doing something wrong or is it a bug in Nette\Database?