Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Error with a query
  • Hi all, I was trying to convert a project from FuelPHP 1.3 to FuelPHP 1.4.

    But I have some problem with some queries. One of them is this one:

    $category = Model_Category::find()
         ->related('contents')
         ->where('title', $title)
         ->where('contents.published', 1)
         ->order_by('contents.id', 'desc')
         ->get_one();
    The problem is the line "->where('contents.published', 1)": if I comment this line, all goes well.

    Can you help me find the problem?
  • Edit: Wrong post

Howdy, Stranger!

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

In this Discussion