<?php
namespace Subject\Model;

class BaseItem
{
	private $id;
	public function exchangeArray($data) {
		foreach($this->getArrayCopy() as $name => $junk) {
			$this->$name = (isset($data[$name])) ? $data[$name] : null;
		}
	}
	public function getArrayCopy() {
		return get_object_vars($this);
	}
	public function setID($id) {$this->id = $id;}
	public function getID() {return $this->id;}
}

<?php
namespace Subject\Model;

class BaseItem
{
	public $id;
	public function exchangeArray($data) {
		foreach($this->getArrayCopy() as $name => $junk) {
			$this->$name = (isset($data[$name])) ? $data[$name] : null;
		}
	}
	public function getArrayCopy() {
		return get_object_vars($this);
	}
	public function setID($id) {$this->id = $id;}
	public function getID() {return $this->id;}
}

Fix to output id in API. If something is not to be published we can define it in the extension class.
Fix to output id in API. If something is not to be published we
can define it in the extension class.
