getherbert / herbert

The WordPress Plugin Framework:
http://getherbert.com/
634 stars 95 forks source link

Method "find()" not found in \Herbert\Framework\Models\Post #151

Closed jan-koch closed 7 years ago

jan-koch commented 7 years ago

First of all, I appreciate the work you put into Herbert! I'm not used to some of the parts used, like Eloquent for example, but I can figure out my way through Herbert quite well (also thanks to the documentation).

However, when I copy & paste your controller example (http://getherbert.com/0.9/controllers), I get the message that the method 'find' can't be found in \Herbert\Framework\Models\Post.

Is that just me not setting up Herbert correctly or is it missing?

jan-koch commented 7 years ago

Never mind, the issue stopped coming up. I assume I was calling the function with the wrong parameter or didn't define the primary key properly in the model.