Ticket #576 (closed bug: fixed)

Opened 2 months ago

Last modified 2 weeks ago

DAO méthode XML update : paramètre à NULL

Reported by: thomas Assigned to:
Priority: normal Milestone: Jelix 1.0.5
Component: jelix:dao Version: 1.0.4
Severity: normal Keywords:
Cc: Php version:
Review: review+ Hosting Provider:
Documentation needed: 0 Blocking:

Description

La méthode buildClasses de la classe jDaoGenerator utilise la méthode _preparePHPExpr avec le paramètre checknull a true pour générer la méthode interne update et a false pour générer les méthodes XML de type update.

Conséquence une méthode XML de type update ne peut pas mettre à jour un champ à NULL à partir d'un paramètre.

Attachments

jDaoGenerator.class.php.diff (0.9 kB) - added by thomas on 05/08/08 01:04:08.

Change History

05/08/08 01:04:08 changed by thomas

  • attachment jDaoGenerator.class.php.diff added.

07/07/08 16:37:11 changed by thomas

  • review set to review?.

07/08/08 11:56:29 changed by laurentj

  • status changed from new to closed.
  • review changed from review? to review+.
  • version changed from trunk to 1.0.4.
  • resolution set to fixed.
  • milestone set to Jelix 1.0.5.

It's ok for me. Patch landed into the trunk and 1.0.x branch.

Thanks for this patch !

Download in other formats: Comma-delimited Text Tab-delimited Text RSS Feed