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

Lazy load models in shells #1147

Merged
merged 1 commit into from
Mar 1, 2013
Merged

Lazy load models in shells #1147

merged 1 commit into from
Mar 1, 2013

Conversation

shama
Copy link
Contributor

@shama shama commented Feb 18, 2013

Rebased for 2.4 from the original PR #572 Thanks!

@shama
Copy link
Contributor Author

shama commented Feb 18, 2013

Hold up, travis is reporting failures (but passes locally for me). I'll look into and fix it.

@rchavik
Copy link
Member

rchavik commented Feb 18, 2013

@shama what are you doing on the net at this time? go attend the baby :)

@dereuromark
Copy link
Member

@shama travis seems to be broken right now. I don't think the failures are related to your changes. It doesn't even come that far.

@shama
Copy link
Contributor Author

shama commented Feb 19, 2013

@rchavik Luckily this one is a sleepy little guy and letting me out of our cave for a bit :)

@shama
Copy link
Contributor Author

shama commented Feb 27, 2013

@lorenzo ping! This is ready to go. It doesn't add any more travis failures then without the change. Thanks!

With this change: https://travis-ci.org/shama/cakephp/builds/5091624
Without it: https://travis-ci.org/shama/cakephp/builds/5087027

if (empty($this->uses)) {
return false;
if (is_array($this->uses)) {
$this->modelClass = null;
Copy link
Member

Choose a reason for hiding this comment

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

modelClass used to be set to uses[0], this same behavior is done in Controller too. It would be good to not set modelClass to null.

@shama
Copy link
Contributor Author

shama commented Mar 1, 2013

@markstory Updated to set modelClass like Controller does. Thanks!

markstory added a commit that referenced this pull request Mar 1, 2013
@markstory markstory merged commit e664f86 into cakephp:2.4 Mar 1, 2013
@shama shama deleted the dev-shell-uses branch March 1, 2013 19:29
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.

4 participants