src/Didww/API2/Country.php
function fromArray($array = array())
    {
        if (isset($array['cities'])) {
            if (is_array($array['cities'])) {
                $this->setCitiesFromArray($array['cities']);
                $this->_loadedCities = true;
            }
            unset($array['cities']);
        }
        if (isset($array['networks'])) {

            if (is_array($array['networks'])) {
                $this->setPSTNNetworksFromArray($array['networks']);
                $this->_loadedNetworks = true;
            }
            unset($array['networks']);
        }

        parent::fromArray($array);
    }
function fromArray($array = array())
    {
        if (isset($array['cities'])) {
            if (is_array($array['cities'])) {
                $this->setCitiesFromArray($array['cities']);
                $this->_loadedCities = true;
            }
            unset($array['cities']);
        }
        if (isset($array['networks'])) {

            if (is_array($array['networks'])) {
                $this->setPSTNNetworksFromArray($array['networks']);
                $this->_loadedNetworks = true;
            }
            unset($array['networks']);
        }

        parent::fromArray($array);
    }
Object::fromArray overriding
@param array $array

<code>
$country =  new Country();
$country->fromArray(array('country_iso'=>'UA'));
echo $country->loadCities()->loadPSTNNetworks();
</code>