unclecheese/DataObjectManager — Issue #34: Fatal Error on ManyMany DOM
Author: dhensby
Created: 2012-01-10 22:42:28+00:00
State: open

When getting selected IDs on ManyManyDOM a fatal error is thrown.

see: https://github.com/unclecheese/DataObjectManager/commit/1051f2d2a04ef47d8bf7fd8d1c4d3ddc74c75a89#commitcomment-855046

When one does this:
SELECT Field AS RenamedField FROM Table WHERE .... LIMIT x;

The alias (RenamedField in this case) can't be used to filter in the WHERE clause (as I understand it), and this would throw an error saying that the field 'RenamedField' doesn't exist, which is exactly what is happening in ManyManyDOM