PHP code generation error [SOLVED]

Please use this forum to signal bugs.
Merci d'utiliser ce forum pour signaler des bugs.

PHP code generation error [SOLVED]

Postby parodid » Thu 26 Feb 2015 07:36

If you declare an attribute:
Code: Select all
  //Session timeout expressed in minutes
  private static $session_timeout = 15;

Get operation generat is:
Code: Select all
  final public static function getSession_timeout()
  {
    return $this->session_timeout;
  }

Instead of the correct form:
Code: Select all
  final public static function getSession_timeout()
  {
    return self::$session_timeout;
  }


Best regards

Edit: I forgot to mark this problem as solved, sorry
Last edited by parodid on Sun 10 May 2015 16:38, edited 2 times in total.
Davide Parodi
SW Methodologies & Tools
Research & Technology
Centro Ricerche Fiat S.C.p.A.
parodid
 
Posts: 16
Joined: Mon 11 Mar 2013 13:44
Location: Orbassano, Turin, Piedmont, Italy

Re: PHP code generation error

Postby Bruno Pagès » Thu 26 Feb 2015 09:10

Hi,

You are right, the body of getter/setter have to take into account the fact the attribute is static or not

Best regards
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 472
Joined: Mon 20 Feb 2012 08:23
Location: France

Re: PHP code generation error

Postby Bruno Pagès » Thu 26 Feb 2015 17:39

Hi,

If I am not wrong you use Bouml under Windows, until I deliver an official version correcting this problem (à priori a release 6.8.1) I propose you to get http://www.bouml.fr/bouml.exe and to replace your bouml.exe by this new one, it is a 6.8 patch 1. To correct the PHP definition of the already existing getter/setter on static attributes/relations, just edit these attributes/relations and immediatly confirm ('ok' button) editing.

Best regards,

Bruno Pagès
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 472
Joined: Mon 20 Feb 2012 08:23
Location: France

Re: PHP code generation error

Postby Bruno Pagès » Sat 7 Mar 2015 17:05

The release 6.8.1 is available fixing this bug

To correct the PHP definition of the already existing getter/setter on static attributes/relations, just edit these attributes/relations and immediatly confirm ('ok' button) editing.

Best regards,

Bruno Pagès
ImageAuthor of Bouml
Bruno Pagès
 
Posts: 472
Joined: Mon 20 Feb 2012 08:23
Location: France


Return to Bug reports / Rapports de bugs

Who is online

Users browsing this forum: No registered users and 3 guests

cron