forestcitylabs / framework

A PSR compliant framework for building web applications.
https://forestcitylabs.github.io/
GNU General Public License v3.0
0 stars 0 forks source link

Strongly Typed Collections #50

Closed midnightLuke closed 3 months ago

midnightLuke commented 3 months ago

It would be great to have strongly typed collections on entities so that we could auto-map collections to arrays with types.

midnightLuke commented 3 months ago

It appears that the map function is incompatible with Doctrine, see the open issue on the ramsey/collections issue.

The gist is that the doctrine maintainers prefer the Closure type to the callable type and won't be persuaded to change their interface so they are incompatible, which is sad.