/** * Constructor that calls the parent Entity constructor and affect values if values are passed * * @param array $data Array($columnName => $value) pairs to set the object DEFAULT null */ public function __construct(array $data = null) { parent::__construct('RoomBan'); if ($data !== null) { $this->setAttributes($data); } }
/** * Constructor that calls the parent Entity constructor * * @param array $data Array($columnName => $value) pairs to set the object DEFAULT null */ public function __construct(array $data = null) { parent::__construct('Room'); if ($data !== null) { $this->setAttributes($data); } $this->roomBanCollection = new RoomBanCollection(); $this->clients = new ClientCollection(); $this->pseudonyms = []; }