-
Type:
Task
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: Laravel
-
None
Laravel’s Query Builder always returns objects (source).
- ['typeMap' => ['root' => 'array', 'document' => 'array']] + ['typeMap' => ['root' => 'object', 'document' => 'array']]
This is a major breaking change that requires changing all array access into property access. Returning a MongoDB\Model\BSONDocument and MongoDB\Model\BSONArray is not possible as the data is casted with native PHP cast feature in Laravel code: (object) $result and (array) $result.
- causes
-
PHPORM-249 Query\Builder::puck($column, 'id') failing
-
- Closed
-
- is depended on by
-
PHPORM-231 Remove MongoFailedJobProvider
-
- Closed
-
-
PHPORM-235 Remove custom DatabaseTokenRepository
-
- Closed
-
- is related to
-
PHPORM-233 Add option to change the default typeMap
-
- Backlog
-