Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of a mapper which can cast properties to primitive types #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

iainmckay
Copy link
Collaborator

Hi, I'd like to put this up for review. This adds a mapper which can cast to primitive types, it takes an existing mapper (Standard, Symfony, etc.) and then does some simple casting after they've done the leg work.

It adds an annotation called 'Cast' which is required to be placed on the properties you want converted. I'm not particularly happy having to add an annotation but it's not possible to read the @var comment as opcode caches can be configured to strip comments.

This does add some bloat to the Bindto project and I understand if this should be kept separate.

@liuggio
Copy link
Member

liuggio commented Apr 26, 2016

@garak

@iainmckay
Copy link
Collaborator Author

Can we make a decision on whether or not to merge this in to the main branch?

@iainmckay iainmckay force-pushed the feature-casting-object-mapper branch from a34a0b4 to c07d025 Compare April 29, 2016 08:08
@liuggio
Copy link
Member

liuggio commented May 2, 2016

👍

@iainmckay
Copy link
Collaborator Author

@garak @liuggio

Can I get this reviewed on premise then I can get feedback and tests incorporated?

@iainmckay
Copy link
Collaborator Author

Poke... @garak @liuggio

@iainmckay iainmckay force-pushed the feature-casting-object-mapper branch from d240035 to e2e6b62 Compare January 25, 2017 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants