-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[WIP] Refactored Model #12328
[WIP] Refactored Model #12328
Conversation
@SidRoberts It is changes for |
3.0.x - I'm just simplifying the code in the existing methods for now. |
@SidRoberts It seems all ok with testы. You can continue your work |
} | ||
} | ||
return false; | ||
return isset this->_options["foreignKey"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
protected _options;
not array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it isn't, isset
will return false anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But won't php complain about this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It won't because it's reasonable to assume that the variable isn't set anyway - that's why we're using isset()
. Technically it's a language construct, not a function, so different rules apply.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea i tested and it's fine in php at least.
@sergeyklay Assuming this passes in Travis, I think it's ready to merge. |
Squash please :) |
I'm not on my dev machine and Serghei can rebase it when merging. |
@@ -149,7 +149,7 @@ class Transaction implements TransactionInterface | |||
|
|||
let manager = this->_manager; | |||
if typeof manager == "object" { | |||
call_user_func_array([manager, "notifyRollback"], [this]); | |||
manager->notifyRollback(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Thanks |
@SidRoberts Now builds for 3.0.x are broken. https://travis-ci.org/phalcon/incubator/builds/169510034 Could you please take a look |
Fixed in phalcon/incubator#680. |
|
Fixed |
Don't merge this just yet - there'll be a few more commits in the next few days.