Fixes issue #1063: Fatal Error while getting value from ActiveRelation generated by Gii
Fixes #1063