Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Log EAV Container
  • when I change data inside EAV container why it didn't trigger observer as update?

    for example i have table and field
    Customer
      - Name
    Meta Customer
      (already connected with customer)

    First i Insert data
      $customer = Model_Customer::forge(array('name' => 'John'));
      $customer->phone = "+258423";
      $customer->save();

    And i Edit data
      $customer->phone = "+368448";
      $customer->save();

    and it didn't trigger observer update. why?
  • HarroHarro
    Accepted Answer
    EAV is implemented as an ORM related table, and a modification of the child object is not seen as a change of the parent. The update observer only runs if the object itself has been modified.

Howdy, Stranger!

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

In this Discussion