<?php

namespace Proxies\__CG__\Fishman\WorkshopBundle\Entity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    public function setCategory(\Fishman\EntityBundle\Entity\Category $category = NULL)
    {
        $this->__load();
        return parent::setCategory($category);
    }

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

    public function setActivity(\Fishman\WorkshopBundle\Entity\Activity $activity = NULL)
    {
        $this->__load();
        return parent::setActivity($activity);
    }

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

    public function setWorkshopscheduling(\Fishman\WorkshopBundle\Entity\Workshopscheduling $workshopscheduling = NULL)
    {
        $this->__load();
        return parent::setWorkshopscheduling($workshopscheduling);
    }

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

    public function setWorkshopactivity(\Fishman\WorkshopBundle\Entity\Workshopactivity $workshopactivity = NULL)
    {
        $this->__load();
        return parent::setWorkshopactivity($workshopactivity);
    }

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


    public function __sleep()
    {
        return array('__isInitialized__', 'id', 'name', 'answer_type', 'alignment', 'options', 'pollscheduling_id', 'predecessor_activity', 'duration', 'period', 'sequence', 'datein', 'dateout', 'status', 'created', 'changed', 'created_by', 'modified_by', 'own', 'deleted', 'category', 'activity', 'workshopscheduling', 'workshopactivity');
    }

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