How to get to a field generated with:
findBySql('SELECT field * 10 AS generated');
SQL will be submitted fine, but it doesn't seem to be in the object. Perhaps there is a way to define a pseudo field in the Model?
How to get to a field generated with:
findBySql('SELECT field * 10 AS generated');
SQL will be submitted fine, but it doesn't seem to be in the object. Perhaps there is a way to define a pseudo field in the Model?
Just declare a 'generated' member variable in the AR class.
Thanks! So obvious that I overlooked it…