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.
Orm
Log EAV Container
l_shaf
June 2014
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?
Harro
June 2014
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.
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,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
June 2014