jonathangeiger / kohana-jelly

See the link below for the most up-to-date code
https://github.com/creatoro/jelly
MIT License
146 stars 34 forks source link

as_array() on Jelly_Model throws this error... #128

Closed raeldc closed 14 years ago

raeldc commented 14 years ago

Jelly Error

What seems to be causing this error? Even the simplest code throws it:

Jelly::select('model', $id)->as_array();

...

jonathangeiger commented 14 years ago

Can you post your actual code?

raeldc commented 14 years ago

Sigh... Just figured it out. I was referencing a non-jelly model in my belongsto field. Lesson learned, don't code when you should be sleeping.

jonathangeiger commented 14 years ago

I figured that's what it was.