public function convertArrayToPod($type, array $data)
    {
        $model = $this->dispense($type);
        $pod = $model->getPod();

        $pod->loadFromArray($data);

        //Signal here
        $this->notify("after_open", $model->getPod());

        return $model;
    }
public function convertArrayToPod($type, array $data)
    {
        $model = $this->dispense($type);
        $pod = $model->getPod();

        $pod->loadFromArray($data);

        //Signal here
        $this->notify("after_open", $model->getPod());

        return $model;
    }
public function convertArrayToPod ( $ type , array $ data ) { $ model = $ this -> dispense ( $ type ) ; $ pod = $ model -> getPod ( ) ; $ pod -> loadFromArray ( $ data ) ; //Signal here $ this -> notify ( "after_open" , $ model -> getPod ( ) ) ; return $ model ; }
Converts an associative array to a pod.
@param  string $type The type of the resulting pod.
@param  array  $data An associative array containing the data for the pod.
@return AModel
Converts an associative array to a pod .