<?php

namespace Proxies\__CG__\Fishman\PollBundle\Entity;

/**
 * THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
 */
class Pollapplication extends \Fishman\PollBundle\Entity\Pollapplication 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 setInitdate($initdate)
    {
        $this->__load();
        return parent::setInitdate($initdate);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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 setResolveCount($resolveCount)
    {
        $this->__load();
        return parent::setResolveCount($resolveCount);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public function setPollscheduling(\Fishman\PollBundle\Entity\Pollscheduling $pollscheduling = NULL)
    {
        $this->__load();
        return parent::setPollscheduling($pollscheduling);
    }

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

    public function addPollapplicationquestion(\Fishman\PollBundle\Entity\Pollapplicationquestion $pollapplicationquestions)
    {
        $this->__load();
        return parent::addPollapplicationquestion($pollapplicationquestions);
    }

    public function removePollapplicationquestion(\Fishman\PollBundle\Entity\Pollapplicationquestion $pollapplicationquestions)
    {
        $this->__load();
        return parent::removePollapplicationquestion($pollapplicationquestions);
    }

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


    public function __sleep()
    {
        return array('__isInitialized__', 'id', 'initdate', 'enddate', 'finished', 'entity_application_type', 'entity_application_id', 'evaluator_id', 'evaluated_id', 'evaluator_rol', 'resolve_count', 'duration', 'period', 'course', 'section', 'token', 'term_on', 'deleted', 'status', 'average', 'created', 'changed', 'created_by', 'modified_by', 'cargo_global', 'nivel_responsabilidad', 'pollapplicationquestions', 'pollscheduling');
    }

    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);
        }
        
    }
}