Thank you Vekia i fixed it the issue was in my Class Horaire.php in the validator of my id_product
<?php
class Horaire extends ObjectModel
{
/** @var string Name */
public $horaire_debut;
/** @var string Name */
public $horaire_fin;
/** @var string formationdate */
public $date_day;
/** @var integer seller id */
public $id_seller;
/** @var integer product id */
public $id_product;
public static $definition = array(
'table' => 'horaire',
'primary' => 'id_horaire',
'multilang' => true,
'multilang_shop' => true,
'fields' => array(
'horaire_debut' => array('type' => self::TYPE_STRING, 'validate' => 'isHoraireDebut', 'size' => 10),
'horaire_fin' => array('type' => self::TYPE_STRING, 'validate' => 'isHoraireFin', 'size' => 10),
'date_day' => array('type' => self::TYPE_STRING, 'validate' => 'isDateDay', 'size' => 30),
'id_seller' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
'id_product' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
),
);
public function getFields()
{
parent::validateFields();
$fields['horaire_debut'] = pSQL($this->horaire_debut);
$fields['horaire_fin'] = pSQL($this->horaire_fin);
$fields['date_day'] = $this->date_day;
$fields['id_seller'] = $this->id_seller;
$fields['id_product'] = $this->id_product;
return $fields;
}
}
?>