public function importFrom($type, $data, $deep = true) { if ($type == 'array') { return $this->fromArray($data, $deep); } else { return $this->fromArray(Doctrine_Parser::load($data, $type), $deep); } }