Quantcast
Channel: Krajee Yii2 Extensions – Krajee Web Tips
Viewing all articles
Browse latest Browse all 129

Does TabularForm update all records on submit?

$
0
0

I have a page that uses TabularForm over GridView in order to update multiple records at once.
The page uses a detached search form  for filtering instead of the standard Yii2 filter headers, as recommended in documentation.
When the submit button is pressed, all records on the page are updated, whether or not any data in the record was changed.  But baseline function of ActiveRecord suggests that only records with “dirty” (changed) attributes are updated when a model is saved.
Is it standard behavior to save all the records displayed in a TabularForm?  Or is there a problem with my setup that I need to address?

The post Does TabularForm update all records on submit? appeared first on Krajee Web Tips.


Viewing all articles
Browse latest Browse all 129

Trending Articles