public function  fromFlatList($array)
    {
        //try to load order properties
        $assignType = $this->getAssignType();
        $this->setAssignType(\Didww\API2\Object::ASSIGN_IGNORE);
        $array = parent::fromArray($array);
        $this->setAssignType($assignType);

        //try to load number properties
        $number = $this->_ensureNumber();
        $assignType = $number->getAssignType();
        $number->setAssignType(\Didww\API2\Object::ASSIGN_IGNORE);
        $array = $number->fromArray($array);
        $number->setAssignType($assignType);

        //finally create mapping object
        $mapping = Mapping::create($array);

        $this->setMapData($mapping);
    }
public function  fromFlatList($array)
    {
        //try to load order properties
        $assignType = $this->getAssignType();
        $this->setAssignType(\Didww\API2\Object::ASSIGN_IGNORE);
        $array = parent::fromArray($array);
        $this->setAssignType($assignType);

        //try to load number properties
        $number = $this->_ensureNumber();
        $assignType = $number->getAssignType();
        $number->setAssignType(\Didww\API2\Object::ASSIGN_IGNORE);
        $array = $number->fromArray($array);
        $number->setAssignType($assignType);

        //finally create mapping object
        $mapping = Mapping::create($array);

        $this->setMapData($mapping);
    }
public function fromFlatList ( $ array ) { //try to load order properties $ assignType = $ this -> getAssignType ( ) ; $ this -> setAssignType ( \ Didww \ API2 \ Object :: ASSIGN_IGNORE ) ; $ array = parent :: fromArray ( $ array ) ; $ this -> setAssignType ( $ assignType ) ; //try to load number properties $ number = $ this -> _ensureNumber ( ) ; $ assignType = $ number -> getAssignType ( ) ; $ number -> setAssignType ( \ Didww \ API2 \ Object :: ASSIGN_IGNORE ) ; $ array = $ number -> fromArray ( $ array ) ; $ number -> setAssignType ( $ assignType ) ; //finally create mapping object $ mapping = Mapping :: create ( $ array ) ; $ this -> setMapData ( $ mapping ) ; }
create object from flat array
@see parent::fromList()
@param array $array
create object from flat array