protected function initByPrimary($sPrimary)
{
$rSql = $GLOBALS["DB"]->exec_SELECTquery("*", self::getDataTable(), self::getPrimaryKey() . "='" . $GLOBALS["DB"]->quote($sPrimary) . "'");
if (($aRs = $rSql->fetch()) === false) {
throw new \Exception("\\Flake\\Core\\Model '" . htmlspecialchars($sPrimary) . "' not found for model " . get_class($this));
}
reset($aRs);
$this->aData = $aRs;
}