protected function _loadDBParameterGroupData(\SimpleXMLElement $sxml)
{
$item = null;
if ($this->exist($sxml)) {
$dbParameterGroupName = (string) $sxml->DBParameterGroupName;
$item = $this->rds->getEntityManagerEnabled() ? $this->rds->dbParameterGroup->get($dbParameterGroupName) : null;
if ($item === null) {
$item = new DBParameterGroupData($dbParameterGroupName, $this->exist($sxml->DBParameterGroupFamily) ? (string) $sxml->DBParameterGroupFamily : null, $this->exist($sxml->Description) ? (string) $sxml->Description : null);
$item->setRds($this->rds);
$bAttach = true;
} else {
$item->resetObject();
$item->dBParameterGroupName = $dbParameterGroupName;
$item->dBParameterGroupFamily = $this->exist($sxml->DBParameterGroupFamily) ? (string) $sxml->DBParameterGroupFamily : null;
$item->description = $this->exist($sxml->Description) ? (string) $sxml->Description : null;
$bAttach = false;
}
if ($bAttach && $this->rds->getEntityManagerEnabled()) {
$this->getEntityManager()->attach($item);
}
}
return $item;
}