Fix early call to `data\Model::schema()` during model instantiation. #738

Merged
merged 1 commit into from Dec 14, 2012

Conversation

Projects
None yet
3 participants
Contributor

jails commented Dec 14, 2012

I experimented this issue when I tried to get the Model::meta('source') for creating a correct table for a model. Since Model::_init() early try to build the schema it fail.

To be really lazy, ::schema() should not be called in ::_init().

Member

d1rk commented Dec 14, 2012

Does that also fix the _init() problem we talked about earlier?

Contributor

jails commented Dec 14, 2012

Concerning ::_init() I'm not sure but according to #679 it seems Model should not have ::_init() method.

nateabele added a commit that referenced this pull request Dec 14, 2012

Merge pull request #738 from jails/pr2
Fix early call to `data\Model::schema()` during model instantiation.

@nateabele nateabele merged commit a3bffac into UnionOfRAD:dev Dec 14, 2012

1 check passed

default The Travis build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment