Adds Encryptable model behavior#138
Conversation
|
|
@der-On can you look into the failed tests? |
|
@der-On one thing I've noticed is that during the Also, your example has the So to make this work, either that property check needs to be dropped, or the If my scoped and local extensions PR is merged, we'd have a mechanism to be able to allow us to access protected properties, so this could be a good push to get that merged. I'll commit a test and my changes which demonstrate the behavior working when |
|
@LukeTowers @bennothommo wow thanks for all the input and improvements. This is becoming interesting. |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
|
@bennothommo what's left on this? |
|
Given that the extension changes were merged, just converting these changes in this PR to use that instead. |
|
@bennothommo is that something that you are able to take care of or are you wanting @der-On to do that or is @mjauvin interested in doing that (he's currently assigned to the PR?). |
|
If someone else can tackle it sooner, feel free, otherwise I'll circle to it sometime in the near future. |
|
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
|
@mjauvin Made all the changes. Let's see what the tests say. |
|
@mjauvin Seems like there is some unknown error with the code analysis but unit tests have passed. |
|
@bennothommo how do we solve this with phpstan, we're accessing a protected property with the help of the |
|
Surprised that the tests are passing - I think this branch is still missing all the changes to the Extension framework. |
|
Should be all good now. |
|
Awesome! Sorry for me taking so long to get back to this. |
|
Looks good to me! |
|
Whohoo! Thanks. |
This pull requests adds the Encryptable model behavior which is based on the Encryptable model trait but can be added dynamically using the models static
::extendmethod.Usage: