developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Closed 12 years ago

#576 closed bug (fixed)

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

Reported by: thomas Owned by:
Priority: normal Milestone: Jelix 1.0.5
Component: jelix:dao Version: 1.0.4
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

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 (1)

jDaoGenerator.class.php.diff (940 bytes) - added by thomas 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by thomas

comment:1 Changed 12 years ago by thomas

  • review set to review?

comment:2 Changed 12 years ago by laurentj

  • Milestone set to Jelix 1.0.5
  • Resolution set to fixed
  • review changed from review? to review+
  • Status changed from new to closed
  • Version changed from trunk to 1.0.4

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

Thanks for this patch !

Note: See TracTickets for help on using tickets.