Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Problems with soft delete
  • 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.
  • HarroHarro
    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.
  • 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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion