<?php

namespace Proxies\__CG__\Fishman\PollBundle\Entity;

/**
 * THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
 */
class Pollapplicationimport extends \Fishman\PollBundle\Entity\Pollapplicationimport implements \Doctrine\ORM\Proxy\Proxy
{
    private $_entityPersister;
    private $_identifier;
    public $__isInitialized__ = false;
    public function __construct($entityPersister, $identifier)
    {
        $this->_entityPersister = $entityPersister;
        $this->_identifier = $identifier;
    }
    /** @private */
    public function __load()
    {
        if (!$this->__isInitialized__ && $this->_entityPersister) {
            $this->__isInitialized__ = true;

            if (method_exists($this, "__wakeup")) {
                // call this after __isInitialized__to avoid infinite recursion
                // but before loading to emulate what ClassMetadata::newInstance()
                // provides.
                $this->__wakeup();
            }

            if ($this->_entityPersister->load($this->_identifier, $this) === null) {
                throw new \Doctrine\ORM\EntityNotFoundException();
            }
            unset($this->_entityPersister, $this->_identifier);
        }
    }

    /** @private */
    public function __isInitialized()
    {
        return $this->__isInitialized__;
    }

    
    public function getId()
    {
        if ($this->__isInitialized__ === false) {
            return (int) $this->_identifier["id"];
        }
        $this->__load();
        return parent::getId();
    }

    public function setPollschedulingId($pollschedulingId)
    {
        $this->__load();
        return parent::setPollschedulingId($pollschedulingId);
    }

    public function getPollschedulingId()
    {
        $this->__load();
        return parent::getPollschedulingId();
    }

    public function setEvaluatedId($evaluatedId)
    {
        $this->__load();
        return parent::setEvaluatedId($evaluatedId);
    }

    public function getEvaluatedId()
    {
        $this->__load();
        return parent::getEvaluatedId();
    }

    public function setEvaluatorId($evaluatorId)
    {
        $this->__load();
        return parent::setEvaluatorId($evaluatorId);
    }

    public function getEvaluatorId()
    {
        $this->__load();
        return parent::getEvaluatorId();
    }

    public function setEvaluatedCode($evaluatedCode)
    {
        $this->__load();
        return parent::setEvaluatedCode($evaluatedCode);
    }

    public function getEvaluatedCode()
    {
        $this->__load();
        return parent::getEvaluatedCode();
    }

    public function setEvaluatorCode($evaluatorCode)
    {
        $this->__load();
        return parent::setEvaluatorCode($evaluatorCode);
    }

    public function getEvaluatorCode()
    {
        $this->__load();
        return parent::getEvaluatorCode();
    }

    public function setEvaluatorRol($evaluatorRol)
    {
        $this->__load();
        return parent::setEvaluatorRol($evaluatorRol);
    }

    public function getEvaluatorRol()
    {
        $this->__load();
        return parent::getEvaluatorRol();
    }

    public function setCargoGlobal($cargoGlobal)
    {
        $this->__load();
        return parent::setCargoGlobal($cargoGlobal);
    }

    public function getCargoGlobal()
    {
        $this->__load();
        return parent::getCargoGlobal();
    }

    public function setNivelResponsabilidad($nivelResponsabilidad)
    {
        $this->__load();
        return parent::setNivelResponsabilidad($nivelResponsabilidad);
    }

    public function getNivelResponsabilidad()
    {
        $this->__load();
        return parent::getNivelResponsabilidad();
    }

    public function setCourse($course)
    {
        $this->__load();
        return parent::setCourse($course);
    }

    public function getCourse()
    {
        $this->__load();
        return parent::getCourse();
    }

    public function setSection($section)
    {
        $this->__load();
        return parent::setSection($section);
    }

    public function getSection()
    {
        $this->__load();
        return parent::getSection();
    }

    public function setStatus($status)
    {
        $this->__load();
        return parent::setStatus($status);
    }

    public function getStatus()
    {
        $this->__load();
        return parent::getStatus();
    }


    public function __sleep()
    {
        return array('__isInitialized__', 'id', 'pollscheduling_id', 'evaluated_id', 'evaluator_id', 'evaluated_code', 'evaluator_code', 'evaluator_rol', 'course', 'section', 'status', 'cargo_global', 'nivel_responsabilidad');
    }

    public function __clone()
    {
        if (!$this->__isInitialized__ && $this->_entityPersister) {
            $this->__isInitialized__ = true;
            $class = $this->_entityPersister->getClassMetadata();
            $original = $this->_entityPersister->load($this->_identifier);
            if ($original === null) {
                throw new \Doctrine\ORM\EntityNotFoundException();
            }
            foreach ($class->reflFields as $field => $reflProperty) {
                $reflProperty->setValue($this, $reflProperty->getValue($original));
            }
            unset($this->_entityPersister, $this->_identifier);
        }
        
    }
}