Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Access custom data in ORM model
  • Hi,
    I'm trying to add a statistics modul to my application, for which I need a sum of all price in certain time period.
    Currently I've got a query like this: http://bin.fuelphp.com/snippet/view/Is, which creates non-standard properties sum and spares_sum in the model.
    When print_r-ing the result of such query I get a model like this: http://bin.fuelphp.com/snippet/view/It. As you can see, the two properties are in "_custom_data". When trying to access them as in an array I get a non-existing key error.
    Is there a way to access these properties? If not, can I create a query similar to mine in ORM way?
  • sorry, I had a typo when trying to access the property

Howdy, Stranger!

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

In this Discussion