Ticket #157 (closed defect: invalid)

Opened 2 months ago

Last modified 2 months ago

Entity produce exception if getter without setter method use (its not declare as db field)

Reported by: prema Assigned to: mikey
Priority: major Milestone:
Component: Database Persistence Version: SVN-trunk
Keywords: Cc:

Description

The follow code produce a stubPersistenceException with the message: ${Class} has no setter method ${Method}

class Foobar {
  
  ....

  protected foobars = array();
  
  /**
   * @XMLTag(tagname='items')
   */
  public getFoobars() {
    return $this->foobars;
  }

  public addFoobar(Foobar $foobar) {
    $this->foobar[$foobar->getId()] = $foobar
  }
}

Change History

07/16/08 11:24:53 changed by prema

  • status changed from new to closed.
  • resolution set to invalid.

Make use of annotation @Transient() fix this problem