Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Problems with soft delete
oboforty
September 2013
Hello there!
I've created several Models, and after I made them inherit from Model_Soft, their querying broke:
class Model_Subject extends \Orm\Model
{
...
in controllers:
Model_Subject::find(21); //works
-----------------------------------------
class Model_Subject extends \Orm\Model_Soft
{
...
in controllers:
Model_Subject::find(21); //returns the very first result from the table. what
What could possibly cause this? Thanks in advance.
Harro
September 2013
Accepted Answer
Which Fuel version?
Could you upgrade the ORM package to 1.7/develop and see if it's still broken? There are quite a few bugs fixed since 1.6.
oboforty
September 2013
The problem was in fact that I've override the find method, and my query building was wrong.
Thanks for the answers tho, i'll upgrade.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
September 2013
oboforty
September 2013