This snippet shows you to test if there was at least one modification on a list of fields.
/** * Test if one of the 3 columns was modified. * * @author COil * @since 13 sept 08 * * @return boolean */ public function isAdrressModified() { $columns = array_flip($this->modifiedColumns); return isset($columns[UserProfilePeer::TOWN]) || isset($columns[UserProfilePeer::ADDRESS]) || isset($columns[UserProfilePeer::POSTAL_CODE]); }
logs
8001.0 KB