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

Allow injection of types not just mapping #8048

Merged
merged 3 commits into from
Jan 18, 2016
Merged

Conversation

jadb
Copy link
Contributor

@jadb jadb commented Jan 16, 2016

This would allow to have configurable types and be able to move some logic currently
done at the Behavior level instead but would fit the Type much more (i.e. data encryption)

This would allow to have configurable types and be able to move some logic currently
done at the `Behavior` level instead but would fit the Type much more (i.e. data encryption)
@jadb jadb added the ORM label Jan 16, 2016
@markstory markstory added this to the 3.1.8 milestone Jan 16, 2016
@markstory
Copy link
Member

Could we get some tests to make sure this change doesn't break in the future.

@jadb
Copy link
Contributor Author

jadb commented Jan 16, 2016

Sure!

@jadb
Copy link
Contributor Author

jadb commented Jan 18, 2016

@markstory, I think this is good to go now.

Type::map('foo2', $fooType);
$map = Type::map();
$this->assertEquals($fooType, $map['foo2']);
$this->assertEquals($fooType, Type::map('foo2'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be assertSame()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing now

lorenzo added a commit that referenced this pull request Jan 18, 2016
Allow injection of types not just mapping
@lorenzo lorenzo merged commit 507853a into master Jan 18, 2016
@lorenzo lorenzo deleted the database-type-injection branch January 18, 2016 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants