Before save method is called before the record saved in database. When we update record in table, Some fields are changed by default like record created date, record modified date etc. I wrote the sample code for record created and last modified.In Format 1, If $this->isNewRecord is return true, it is new record. Now “createddate” variable will get current date. If $this->isNewRecord is return false, It will affect “modifieddate” date […]... Read More »