<?php

namespace Proxies\__CG__\Fishman\PollBundle\Entity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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 setPollquestion(\Fishman\PollBundle\Entity\Pollquestion $pollquestion = NULL)
    {
        $this->__load();
        return parent::setPollquestion($pollquestion);
    }

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

    public function setPollschedulingsection(\Fishman\PollBundle\Entity\Pollschedulingsection $pollschedulingsection = NULL)
    {
        $this->__load();
        return parent::setPollschedulingsection($pollschedulingsection);
    }

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

    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 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 __sleep()
    {
        return array('__isInitialized__', 'id', 'question', 'type', 'alignment', 'options', 'mandatory_response', 'level', 'sequence', 'original_sequence', 'ceil_score', 'status', 'created', 'changed', 'created_by', 'modified_by', 'pollapplicationquestions', 'pollscheduling', 'pollquestion', 'pollschedulingsection');
    }

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