public function __construct(int $id = null)
 {
     $doc_id = intval($id);
     parent::__construct($doc_id);
 }
 /**
  * Constructor.  Takes an optional ID.  If a composite is created from outside
  * the database the ID should be empty so the database can add one according to its logic.
  * 
  * @param int $id the id of this composite
  */
 public function __construct(int $id = null)
 {
     parent::__construct($id);
     $this->units = array();
     $this->contracts = array();
 }
 public function __construct(int $id, $composite_id = -1, rental_property_location $location = null)
 {
     parent::__construct($id);
     $this->composite_id = (int) $composite_id;
     $this->location = $location;
 }
 /**
  * @see rental/inc/model/rental_model#validates()
  */
 public function validates()
 {
     $valid = parent::validates();
     // Check that we have a correct agresso id
     /*
     if ($this->get_agresso_id() && !rental_validator::valid_agresso_id($this->get_agresso_id(), $this->validation_errors['agresso_id'])) {
     	$valid = false;
     }
     */
     return $valid;
 }
 public function __construct(int $id = null)
 {
     $adjustment_id = intval($id);
     parent::__construct($adjustment_id);
 }