aerial-framework/core

ByteArray on PHP Aerial Model

cesaric opened this issue · 0 comments

In CollectionDriver.php ~line 30, we're explicitly casting blob columns to ByteArray. If a user isn't retrieving a DB result set that runs through this driver, they have to explicitly cast the blob property themselves before returning to Flash.

To solve this, we could build some "setter" hooks into the Doctrine model for doing this cast automatically. These hooks could be built during the code gen process. We could possibly eliminate the whole switch starting on line 30 in CollectionDriver.php.