public function __construct($resultMap = null) { if ($resultMap instanceof TResultMap) { $this->_hostResultMapID = $resultMap->getID(); } }