public function fromArray($arr)
    {
        $obj  = $this->getWorkerObject();
        foreach ($arr as $element) {
            $obj->clear();
            $obj->fromArray($element);
            $this->append($obj->toArray());
        }
    }
public function fromArray($arr)
    {
        $obj  = $this->getWorkerObject();
        foreach ($arr as $element) {
            $obj->clear();
            $obj->fromArray($element);
            $this->append($obj->toArray());
        }
    }
public function fromArray ( $ arr ) { $ obj = $ this -> getWorkerObject ( ) ; foreach ( $ arr as $ element ) { $ obj -> clear ( ) ; $ obj -> fromArray ( $ element ) ; $ this -> append ( $ obj -> toArray ( ) ) ; } }
Populates the collection from an array
Uses the object model to force the column types
Does not empty the collection before adding the data from the array

@param array $arr
Populates the collection from an array Uses the object model to force the column types Does not empty the collection before adding the data from the array