<?php

namespace Proxies\__CG__\Fishman\PollBundle\Entity;

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

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

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

    public function setPoll(\Fishman\PollBundle\Entity\Poll $poll = NULL)
    {
        $this->__load();
        return parent::setPoll($poll);
    }

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

    public function setPollsection(\Fishman\PollBundle\Entity\Pollsection $pollsection = NULL)
    {
        $this->__load();
        return parent::setPollsection($pollsection);
    }

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

    public function addPollschedulingquestion(\Fishman\PollBundle\Entity\Pollschedulingquestion $pollschedulingquestions)
    {
        $this->__load();
        return parent::addPollschedulingquestion($pollschedulingquestions);
    }

    public function removePollschedulingquestion(\Fishman\PollBundle\Entity\Pollschedulingquestion $pollschedulingquestions)
    {
        $this->__load();
        return parent::removePollschedulingquestion($pollschedulingquestions);
    }

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


    public function __sleep()
    {
        return array('__isInitialized__', 'id', 'question', 'type', 'alignment', 'options', 'mandatory_response', 'sequence', 'status', 'created', 'changed', 'created_by', 'modified_by', 'pollschedulingquestions', 'poll', 'pollsection');
    }

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