function store() { $this->updatePlainFields(); if (!$this->_no_synchro) { $service = $this->getService(); $where = array(); $where["date"] = $this->_spec->ds->prepare("= %", $this->date); $where["service_id"] = $this->_spec->ds->prepare("= %", $service->_id); $where["typerepas_id"] = $this->_spec->ds->prepare("= %", $this->typerepas_id); $validationrepas = new CValidationRepas(); $validationrepas->loadObject($where); if ($validationrepas->validationrepas_id) { $validationrepas->modif = 1; $validationrepas->store(); $this->modif = 1; } } return parent::store(); }