<?php

namespace Proxies\__CG__\Fishman\PollBundle\Entity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    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 getParentOptions(\Doctrine\Bundle\DoctrineBundle\Registry $doctrine, $psId, $withoutparentoption = true)
    {
        $this->__load();
        return parent::getParentOptions($doctrine, $psId, $withoutparentoption);
    }

    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', 'name', 'description', 'type', 'parent_id', 'sequence', 'l1', 'l2', 'l3', 'l4', 'l5', 'l6', 'l7', 'l8', 'l9', 'status', 'created', 'changed', 'created_by', 'modified_by', 'pollschedulingquestions', 'pollsection', '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);
        }
        
    }
}