mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
Merge branch 'master' into PHRAS-2597_add_latest_properties_to_default_configuration
This commit is contained in:
@@ -61,7 +61,9 @@ jobs:
|
|||||||
- run: node -v
|
- run: node -v
|
||||||
- run: npm -v
|
- run: npm -v
|
||||||
- run: npm install -g yarn
|
- run: npm install -g yarn
|
||||||
- run: /opt/circleci/nodejs/v10.12.0/bin/yarn install
|
- run: rm ~/.yarn/bin/yarn
|
||||||
|
- run: ln -s /opt/circleci/nodejs/v10.12.0/bin/yarn ~/.yarn/bin/yarn
|
||||||
|
- run: yarn install
|
||||||
- run: if [[ ! -e elasticsearch-2.3.3 ]]; then wget --no-check-certificate https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.3.3.tar.gz && tar -xvf elasticsearch-2.3.3.tar.gz && elasticsearch-2.3.3/bin/plugin install analysis-icu; fi
|
- run: if [[ ! -e elasticsearch-2.3.3 ]]; then wget --no-check-certificate https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-2.3.3.tar.gz && tar -xvf elasticsearch-2.3.3.tar.gz && elasticsearch-2.3.3/bin/plugin install analysis-icu; fi
|
||||||
- run:
|
- run:
|
||||||
command: elasticsearch-2.3.3/bin/elasticsearch
|
command: elasticsearch-2.3.3/bin/elasticsearch
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -21,7 +21,7 @@
|
|||||||
!/config/configuration.sample.yml
|
!/config/configuration.sample.yml
|
||||||
|
|
||||||
# Exclude generated proxies from doctrine2
|
# Exclude generated proxies from doctrine2
|
||||||
/resources/proxies
|
#/resources/proxies
|
||||||
|
|
||||||
# Exclude temporaries resources (zip files, quarantine documents etc ..) folder
|
# Exclude temporaries resources (zip files, quarantine documents etc ..) folder
|
||||||
/tmp
|
/tmp
|
||||||
|
|||||||
11
Dockerfile
11
Dockerfile
@@ -1,6 +1,5 @@
|
|||||||
FROM php:7.1-fpm-stretch as builder
|
FROM php:7.1-fpm-stretch as builder
|
||||||
|
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y \
|
&& apt-get install -y \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
@@ -135,8 +134,13 @@ RUN apt-get update \
|
|||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& mkdir -p /var/log/supervisor
|
&& mkdir -p /var/log/supervisor
|
||||||
|
|
||||||
|
RUN mkdir /entrypoint /var/alchemy \
|
||||||
|
&& useradd -u 1000 app \
|
||||||
|
&& mkdir -p /home/app/.composer \
|
||||||
|
&& chown -R app: /home/app /var/alchemy
|
||||||
|
|
||||||
COPY --from=builder /var/alchemy /var/alchemy/Phraseanet
|
COPY --from=builder --chown=app /var/alchemy /var/alchemy/Phraseanet
|
||||||
|
ADD ./docker/phraseanet/ /
|
||||||
RUN mkdir -p /var/alchemy/Phraseanet/logs \
|
RUN mkdir -p /var/alchemy/Phraseanet/logs \
|
||||||
&& chmod -R 777 /var/alchemy/Phraseanet/logs \
|
&& chmod -R 777 /var/alchemy/Phraseanet/logs \
|
||||||
&& mkdir -p /var/alchemy/Phraseanet/cache \
|
&& mkdir -p /var/alchemy/Phraseanet/cache \
|
||||||
@@ -150,11 +154,10 @@ RUN mkdir -p /var/alchemy/Phraseanet/logs \
|
|||||||
&& mkdir -p /var/alchemy/Phraseanet/config \
|
&& mkdir -p /var/alchemy/Phraseanet/config \
|
||||||
&& chmod -R 777 /var/alchemy/Phraseanet/config
|
&& chmod -R 777 /var/alchemy/Phraseanet/config
|
||||||
WORKDIR /var/alchemy/Phraseanet
|
WORKDIR /var/alchemy/Phraseanet
|
||||||
CMD ["php-fpm"]
|
CMD ["/boot.sh"]
|
||||||
|
|
||||||
# phraseanet-nginx
|
# phraseanet-nginx
|
||||||
FROM nginx:1.15 as phraseanet-nginx
|
FROM nginx:1.15 as phraseanet-nginx
|
||||||
RUN useradd -u 1000 app
|
RUN useradd -u 1000 app
|
||||||
ADD ./docker/nginx/ /
|
ADD ./docker/nginx/ /
|
||||||
COPY --from=builder /var/alchemy/www /var/alchemy/Phraseanet/www
|
COPY --from=builder /var/alchemy/www /var/alchemy/Phraseanet/www
|
||||||
|
|
||||||
|
|||||||
@@ -56,9 +56,9 @@ The docker distribution come with 2 differents containers :
|
|||||||
The two images can be built respectively with these two commands :
|
The two images can be built respectively with these two commands :
|
||||||
|
|
||||||
# nginx server
|
# nginx server
|
||||||
docker build --target phraseanet-nginx -t phraseanet-nginx .
|
docker build --target phraseanet-nginx -t local/phraseanet-nginx .
|
||||||
|
|
||||||
# php-fpm application
|
# php-fpm application
|
||||||
docker build --target phraseanet -t phraseanet .
|
docker build --target phraseanet -t local/phraseanet .
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
"php": ">=5.5.9",
|
"php": ">=5.5.9",
|
||||||
"ext-intl": "*",
|
"ext-intl": "*",
|
||||||
"alchemy-fr/tcpdf-clone": "~6.0",
|
"alchemy-fr/tcpdf-clone": "~6.0",
|
||||||
"alchemy/embed-bundle": "^2.0.2",
|
"alchemy/embed-bundle": "^2.0.3",
|
||||||
"alchemy/geonames-api-consumer": "~0.1.0",
|
"alchemy/geonames-api-consumer": "~0.1.0",
|
||||||
"alchemy/mediavorus": "^0.4.4",
|
"alchemy/mediavorus": "^0.4.4",
|
||||||
"alchemy/oauth2php": "1.1.0",
|
"alchemy/oauth2php": "1.1.0",
|
||||||
|
|||||||
14
composer.lock
generated
14
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "f7b0fedd863f0f1aa5841665b563305d",
|
"content-hash": "de1d9335418b121d0ede26765b0a9e7d",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "alchemy-fr/tcpdf-clone",
|
"name": "alchemy-fr/tcpdf-clone",
|
||||||
@@ -131,16 +131,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "alchemy/embed-bundle",
|
"name": "alchemy/embed-bundle",
|
||||||
"version": "2.0.1",
|
"version": "2.0.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/alchemy-fr/embed-bundle.git",
|
"url": "https://github.com/alchemy-fr/embed-bundle.git",
|
||||||
"reference": "36c788a38bfed3ed19fdc4e1cc0290f0a674e4b9"
|
"reference": "e02e25a04911210eaedff0adb9cf7589010c473b"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/alchemy-fr/embed-bundle/zipball/36c788a38bfed3ed19fdc4e1cc0290f0a674e4b9",
|
"url": "https://api.github.com/repos/alchemy-fr/embed-bundle/zipball/e02e25a04911210eaedff0adb9cf7589010c473b",
|
||||||
"reference": "36c788a38bfed3ed19fdc4e1cc0290f0a674e4b9",
|
"reference": "e02e25a04911210eaedff0adb9cf7589010c473b",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
@@ -178,10 +178,10 @@
|
|||||||
],
|
],
|
||||||
"description": "Embed resources bundle",
|
"description": "Embed resources bundle",
|
||||||
"support": {
|
"support": {
|
||||||
"source": "https://github.com/alchemy-fr/embed-bundle/tree/2.0.1",
|
"source": "https://github.com/alchemy-fr/embed-bundle/tree/2.0.3",
|
||||||
"issues": "https://github.com/alchemy-fr/embed-bundle/issues"
|
"issues": "https://github.com/alchemy-fr/embed-bundle/issues"
|
||||||
},
|
},
|
||||||
"time": "2019-05-14T12:25:18+00:00"
|
"time": "2019-05-23T15:23:14+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "alchemy/geonames-api-consumer",
|
"name": "alchemy/geonames-api-consumer",
|
||||||
|
|||||||
3
docker/phraseanet/boot.sh
Executable file
3
docker/phraseanet/boot.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
php-fpm
|
||||||
@@ -182,27 +182,27 @@
|
|||||||
</subdefs>
|
</subdefs>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
<Object src="IPTC:ObjectName" />
|
<Object src="IPTC:ObjectName" type="string"/>
|
||||||
<Category src="IPTC:Category"/>
|
<Category src="IPTC:Category" type="string"/>
|
||||||
<SupplCategory src="IPTC:SupplementalCategories" multi="1"/>
|
<SupplCategory src="IPTC:SupplementalCategories" type="string" multi="1"/>
|
||||||
<Keywords src="IPTC:Keywords" multi="1"/>
|
<Keywords src="IPTC:Keywords" type="string" multi="1"/>
|
||||||
<SpecialInstruct src="IPTC:SpecialInstructions"/>
|
<SpecialInstruct src="IPTC:SpecialInstructions" type="string"/>
|
||||||
<Date src="IPTC:DateCreated" type="date" />
|
<Date src="IPTC:DateCreated" type="date" />
|
||||||
<Byline src="IPTC:By-line"/>
|
<Byline src="IPTC:By-line" type="string"/>
|
||||||
<BylineTitle src="IPTC:By-lineTitle"/>
|
<BylineTitle src="IPTC:By-lineTitle" type="string"/>
|
||||||
<City src="IPTC:City" />
|
<City src="IPTC:City" type="string"/>
|
||||||
<Province src="IPTC:Province-State" />
|
<Province src="IPTC:Province-State" type="string"/>
|
||||||
<Country src="IPTC:Country-PrimaryLocationName" />
|
<Country src="IPTC:Country-PrimaryLocationName" type="string"/>
|
||||||
<OriginalRef src="IPTC:OriginalTransmissionReference" />
|
<OriginalRef src="IPTC:OriginalTransmissionReference" type="string"/>
|
||||||
<Headline src="IPTC:Headline" report="1" thumbtitle="1" />
|
<Headline src="IPTC:Headline" type="string" report="1" thumbtitle="1"/>
|
||||||
<Credit src="IPTC:Credit" report="1" />
|
<Credit src="IPTC:Credit" type="string" report="1"/>
|
||||||
<Source src="IPTC:Source" />
|
<Source src="IPTC:Source" type="string"/>
|
||||||
<Caption src="IPTC:Caption-Abstract" />
|
<Caption src="IPTC:Caption-Abstract" type="string"/>
|
||||||
<CaptionWriter src="IPTC:Writer-Editor" />
|
<CaptionWriter src="IPTC:Writer-Editor" type="string"/>
|
||||||
<Longitude src="GPS:GPSLongitude" readonly="1"/>
|
<Longitude src="GPS:GPSLongitude" type="number" readonly="1"/>
|
||||||
<Latitude src="GPS:GPSLatitude" readonly="1"/>
|
<Latitude src="GPS:GPSLatitude" type="number" readonly="1"/>
|
||||||
<CameraModel src="IFD0:Model" readonly="1"/>
|
<CameraModel src="IFD0:Model" type="string" readonly="1"/>
|
||||||
<FileName src="Phraseanet:tf-basename" readonly="1" type="string" />
|
<FileName src="Phraseanet:tf-basename" type="string" readonly="1"/>
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<statbits>
|
<statbits>
|
||||||
|
|||||||
@@ -182,27 +182,27 @@
|
|||||||
</subdefs>
|
</subdefs>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
<Objet src="IPTC:ObjectName" />
|
<Objet src="IPTC:ObjectName" type="string"/>
|
||||||
<Categorie src="IPTC:Category"/>
|
<Categorie src="IPTC:Category" type="string"/>
|
||||||
<AutresCategories src="IPTC:SupplementalCategories" multi="1"/>
|
<AutresCategories src="IPTC:SupplementalCategories" type="string" multi="1"/>
|
||||||
<MotsCles src="IPTC:Keywords" multi="1"/>
|
<MotsCles src="IPTC:Keywords" type="string" multi="1"/>
|
||||||
<Observations src="IPTC:SpecialInstructions"/>
|
<Observations src="IPTC:SpecialInstructions" type="string"/>
|
||||||
<Date src="IPTC:DateCreated" type="date" />
|
<Date src="IPTC:DateCreated" type="date"/>
|
||||||
<Signature src="IPTC:By-line"/>
|
<Signature src="IPTC:By-line" type="string"/>
|
||||||
<TitreCredits src="IPTC:By-lineTitle"/>
|
<TitreCredits src="IPTC:By-lineTitle" type="string"/>
|
||||||
<Ville src="IPTC:City" />
|
<Ville src="IPTC:City" type="string" />
|
||||||
<Province src="IPTC:Province-State" />
|
<Province src="IPTC:Province-State" type="string"/>
|
||||||
<Pays src="IPTC:Country-PrimaryLocationName" />
|
<Pays src="IPTC:Country-PrimaryLocationName" type="string"/>
|
||||||
<ReferencesOriginales src="IPTC:OriginalTransmissionReference" />
|
<ReferencesOriginales src="IPTC:OriginalTransmissionReference" type="string"/>
|
||||||
<Titre src="IPTC:Headline" report="1" thumbtitle="1" />
|
<Titre src="IPTC:Headline" type="string" report="1" thumbtitle="1" />
|
||||||
<Credit src="IPTC:Credit" report="1" />
|
<Credit src="IPTC:Credit" type="string" report="1" />
|
||||||
<Source src="IPTC:Source" />
|
<Source src="IPTC:Source" type="string"/>
|
||||||
<Legende src="IPTC:Caption-Abstract" />
|
<Legende src="IPTC:Caption-Abstract" type="string"/>
|
||||||
<Redacteur src="IPTC:Writer-Editor" />
|
<Redacteur src="IPTC:Writer-Editor" type="string"/>
|
||||||
<Longitude src="GPS:GPSLongitude" readonly="1"/>
|
<Longitude src="GPS:GPSLongitude" type="number" readonly="1"/>
|
||||||
<Latitude src="GPS:GPSLatitude" readonly="1"/>
|
<Latitude src="GPS:GPSLatitude" type="number" readonly="1"/>
|
||||||
<AppareilPhoto src="IFD0:Model" readonly="1"/>
|
<AppareilPhoto src="IFD0:Model" type="string" readonly="1"/>
|
||||||
<NomDeFichier src="Phraseanet:tf-basename" readonly="1" type="string" />
|
<NomDeFichier src="Phraseanet:tf-basename" type="string" readonly="1"/>
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<statbits>
|
<statbits>
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
"normalize-css": "^2.1.0",
|
"normalize-css": "^2.1.0",
|
||||||
"npm": "^6.0.0",
|
"npm": "^6.0.0",
|
||||||
"npm-modernizr": "^2.8.3",
|
"npm-modernizr": "^2.8.3",
|
||||||
"phraseanet-production-client": "0.34.11",
|
"phraseanet-production-client": "0.34.12-d",
|
||||||
"requirejs": "^2.3.5",
|
"requirejs": "^2.3.5",
|
||||||
"tinymce": "^4.0.28",
|
"tinymce": "^4.0.28",
|
||||||
"underscore": "^1.8.3",
|
"underscore": "^1.8.3",
|
||||||
|
|||||||
@@ -0,0 +1,235 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class AggregateToken extends \Alchemy\Phrasea\Model\Entities\AggregateToken implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AggregateToken' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AggregateToken' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AggregateToken' . "\0" . 'value'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AggregateToken' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AggregateToken' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AggregateToken' . "\0" . 'value'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (AggregateToken $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setValue($value)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setValue', [$value]);
|
||||||
|
|
||||||
|
return parent::setValue($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getValue()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValue', []);
|
||||||
|
|
||||||
|
return parent::getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,312 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class ApiAccount extends \Alchemy\Phrasea\Model\Entities\ApiAccount implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'revoked', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'apiVersion', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'application', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'tokens', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'revoked', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'apiVersion', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'application', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'tokens', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiAccount' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (ApiAccount $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setApiVersion($apiVersion)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setApiVersion', [$apiVersion]);
|
||||||
|
|
||||||
|
return parent::setApiVersion($apiVersion);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getApiVersion()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getApiVersion', []);
|
||||||
|
|
||||||
|
return parent::getApiVersion();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setApplication(\Alchemy\Phrasea\Model\Entities\ApiApplication $application)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setApplication', [$application]);
|
||||||
|
|
||||||
|
return parent::setApplication($application);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getApplication()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getApplication', []);
|
||||||
|
|
||||||
|
return parent::getApplication();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRevoked($revoked)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRevoked', [$revoked]);
|
||||||
|
|
||||||
|
return parent::setRevoked($revoked);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isRevoked()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isRevoked', []);
|
||||||
|
|
||||||
|
return parent::isRevoked();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addTokens(\Alchemy\Phrasea\Model\Entities\ApiOauthToken $token)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addTokens', [$token]);
|
||||||
|
|
||||||
|
return parent::addTokens($token);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,510 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class ApiApplication extends \Alchemy\Phrasea\Model\Entities\ApiApplication implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'creator', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'type', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'description', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'website', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'clientId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'clientSecret', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'nonce', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'redirectUri', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'activated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'grantPassword', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'accounts', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'webhookUrl'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'creator', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'type', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'description', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'website', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'clientId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'clientSecret', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'nonce', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'redirectUri', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'activated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'grantPassword', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'accounts', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiApplication' . "\0" . 'webhookUrl'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (ApiApplication $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setActivated($activated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setActivated', [$activated]);
|
||||||
|
|
||||||
|
return parent::setActivated($activated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isActivated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isActivated', []);
|
||||||
|
|
||||||
|
return parent::isActivated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setClientId($clientId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setClientId', [$clientId]);
|
||||||
|
|
||||||
|
return parent::setClientId($clientId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getClientId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getClientId', []);
|
||||||
|
|
||||||
|
return parent::getClientId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setClientSecret($clientSecret)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setClientSecret', [$clientSecret]);
|
||||||
|
|
||||||
|
return parent::setClientSecret($clientSecret);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getClientSecret()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getClientSecret', []);
|
||||||
|
|
||||||
|
return parent::getClientSecret();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreator(\Alchemy\Phrasea\Model\Entities\User $creator = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreator', [$creator]);
|
||||||
|
|
||||||
|
return parent::setCreator($creator);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreator()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreator', []);
|
||||||
|
|
||||||
|
return parent::getCreator();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setDescription($description)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescription', [$description]);
|
||||||
|
|
||||||
|
return parent::setDescription($description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getDescription()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescription', []);
|
||||||
|
|
||||||
|
return parent::getDescription();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setGrantPassword($grantPassword)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setGrantPassword', [$grantPassword]);
|
||||||
|
|
||||||
|
return parent::setGrantPassword($grantPassword);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isPasswordGranted()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPasswordGranted', []);
|
||||||
|
|
||||||
|
return parent::isPasswordGranted();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
|
||||||
|
|
||||||
|
return parent::setName($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
|
||||||
|
|
||||||
|
return parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setNonce($nonce)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNonce', [$nonce]);
|
||||||
|
|
||||||
|
return parent::setNonce($nonce);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getNonce()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNonce', []);
|
||||||
|
|
||||||
|
return parent::getNonce();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRedirectUri($redirectUri)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRedirectUri', [$redirectUri]);
|
||||||
|
|
||||||
|
return parent::setRedirectUri($redirectUri);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRedirectUri()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRedirectUri', []);
|
||||||
|
|
||||||
|
return parent::getRedirectUri();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setType($type)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', [$type]);
|
||||||
|
|
||||||
|
return parent::setType($type);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getType()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getType', []);
|
||||||
|
|
||||||
|
return parent::getType();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setWebsite($website)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setWebsite', [$website]);
|
||||||
|
|
||||||
|
return parent::setWebsite($website);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getWebsite()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getWebsite', []);
|
||||||
|
|
||||||
|
return parent::getWebsite();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setWebhookUrl($webhookUrl)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setWebhookUrl', [$webhookUrl]);
|
||||||
|
|
||||||
|
return parent::setWebhookUrl($webhookUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getWebhookUrl()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getWebhookUrl', []);
|
||||||
|
|
||||||
|
return parent::getWebhookUrl();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addAccount(\Alchemy\Phrasea\Model\Entities\ApiAccount $account)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addAccount', [$account]);
|
||||||
|
|
||||||
|
return parent::addAccount($account);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
455
resources/proxies/__CG__AlchemyPhraseaModelEntitiesApiLog.php
Normal file
455
resources/proxies/__CG__AlchemyPhraseaModelEntitiesApiLog.php
Normal file
@@ -0,0 +1,455 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class ApiLog extends \Alchemy\Phrasea\Model\Entities\ApiLog implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'account', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'route', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'method', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'statusCode', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'format', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'resource', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'general', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'aspect', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'action', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'errorCode', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'errorMessage'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'account', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'route', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'method', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'statusCode', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'format', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'resource', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'general', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'aspect', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'action', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'errorCode', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiLog' . "\0" . 'errorMessage'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (ApiLog $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAccount(\Alchemy\Phrasea\Model\Entities\ApiAccount $account)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAccount', [$account]);
|
||||||
|
|
||||||
|
return parent::setAccount($account);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAccount()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAccount', []);
|
||||||
|
|
||||||
|
return parent::getAccount();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAction($action)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAction', [$action]);
|
||||||
|
|
||||||
|
return parent::setAction($action);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAction()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAction', []);
|
||||||
|
|
||||||
|
return parent::getAction();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAspect($aspect)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAspect', [$aspect]);
|
||||||
|
|
||||||
|
return parent::setAspect($aspect);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAspect()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAspect', []);
|
||||||
|
|
||||||
|
return parent::getAspect();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setErrorCode($errorCode)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setErrorCode', [$errorCode]);
|
||||||
|
|
||||||
|
return parent::setErrorCode($errorCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getErrorCode()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getErrorCode', []);
|
||||||
|
|
||||||
|
return parent::getErrorCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setErrorMessage($errorMessage)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setErrorMessage', [$errorMessage]);
|
||||||
|
|
||||||
|
return parent::setErrorMessage($errorMessage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getErrorMessage()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getErrorMessage', []);
|
||||||
|
|
||||||
|
return parent::getErrorMessage();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setFormat($format)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFormat', [$format]);
|
||||||
|
|
||||||
|
return parent::setFormat($format);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getFormat()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFormat', []);
|
||||||
|
|
||||||
|
return parent::getFormat();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setGeneral($general)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setGeneral', [$general]);
|
||||||
|
|
||||||
|
return parent::setGeneral($general);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getGeneral()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getGeneral', []);
|
||||||
|
|
||||||
|
return parent::getGeneral();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setResource($resource)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setResource', [$resource]);
|
||||||
|
|
||||||
|
return parent::setResource($resource);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getResource()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getResource', []);
|
||||||
|
|
||||||
|
return parent::getResource();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRoute($route)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRoute', [$route]);
|
||||||
|
|
||||||
|
return parent::setRoute($route);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRoute()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRoute', []);
|
||||||
|
|
||||||
|
return parent::getRoute();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setStatusCode($statusCode)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setStatusCode', [$statusCode]);
|
||||||
|
|
||||||
|
return parent::setStatusCode($statusCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getStatusCode()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatusCode', []);
|
||||||
|
|
||||||
|
return parent::getStatusCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setMethod($method)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMethod', [$method]);
|
||||||
|
|
||||||
|
return parent::setMethod($method);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getMethod()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMethod', []);
|
||||||
|
|
||||||
|
return parent::getMethod();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,334 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class ApiOauthCode extends \Alchemy\Phrasea\Model\Entities\ApiOauthCode implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'code', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'account', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'redirectUri', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'expires', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'scope', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'code', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'account', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'redirectUri', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'expires', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'scope', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthCode' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (ApiOauthCode $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAccount(\Alchemy\Phrasea\Model\Entities\ApiAccount $account)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAccount', [$account]);
|
||||||
|
|
||||||
|
return parent::setAccount($account);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAccount()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAccount', []);
|
||||||
|
|
||||||
|
return parent::getAccount();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCode($code)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCode', [$code]);
|
||||||
|
|
||||||
|
return parent::setCode($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCode()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return parent::getCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCode', []);
|
||||||
|
|
||||||
|
return parent::getCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setExpires($timestamp)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setExpires', [$timestamp]);
|
||||||
|
|
||||||
|
return parent::setExpires($timestamp);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getExpires()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getExpires', []);
|
||||||
|
|
||||||
|
return parent::getExpires();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRedirectUri($redirectUri)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRedirectUri', [$redirectUri]);
|
||||||
|
|
||||||
|
return parent::setRedirectUri($redirectUri);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRedirectUri()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRedirectUri', []);
|
||||||
|
|
||||||
|
return parent::getRedirectUri();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setScope($scope)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setScope', [$scope]);
|
||||||
|
|
||||||
|
return parent::setScope($scope);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getScope()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getScope', []);
|
||||||
|
|
||||||
|
return parent::getScope();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,312 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class ApiOauthRefreshToken extends \Alchemy\Phrasea\Model\Entities\ApiOauthRefreshToken implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'refreshToken', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'account', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'expires', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'scope', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'refreshToken', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'account', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'expires', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'scope', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthRefreshToken' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (ApiOauthRefreshToken $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAccount(\Alchemy\Phrasea\Model\Entities\ApiAccount $account)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAccount', [$account]);
|
||||||
|
|
||||||
|
return parent::setAccount($account);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAccount()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAccount', []);
|
||||||
|
|
||||||
|
return parent::getAccount();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setExpires($expires)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setExpires', [$expires]);
|
||||||
|
|
||||||
|
return parent::setExpires($expires);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getExpires()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getExpires', []);
|
||||||
|
|
||||||
|
return parent::getExpires();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRefreshToken($refreshToken)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRefreshToken', [$refreshToken]);
|
||||||
|
|
||||||
|
return parent::setRefreshToken($refreshToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRefreshToken()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return parent::getRefreshToken();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRefreshToken', []);
|
||||||
|
|
||||||
|
return parent::getRefreshToken();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setScope($scope)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setScope', [$scope]);
|
||||||
|
|
||||||
|
return parent::setScope($scope);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getScope()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getScope', []);
|
||||||
|
|
||||||
|
return parent::getScope();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,356 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class ApiOauthToken extends \Alchemy\Phrasea\Model\Entities\ApiOauthToken implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'oauthToken', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'sessionId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'account', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'expires', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'lastUsed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'scope', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'oauthToken', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'sessionId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'account', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'expires', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'lastUsed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'scope', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ApiOauthToken' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (ApiOauthToken $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAccount(\Alchemy\Phrasea\Model\Entities\ApiAccount $account)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAccount', [$account]);
|
||||||
|
|
||||||
|
return parent::setAccount($account);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAccount()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAccount', []);
|
||||||
|
|
||||||
|
return parent::getAccount();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setExpires($expires = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setExpires', [$expires]);
|
||||||
|
|
||||||
|
return parent::setExpires($expires);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getExpires()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getExpires', []);
|
||||||
|
|
||||||
|
return parent::getExpires();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setOauthToken($oauthToken)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOauthToken', [$oauthToken]);
|
||||||
|
|
||||||
|
return parent::setOauthToken($oauthToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOauthToken()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return parent::getOauthToken();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOauthToken', []);
|
||||||
|
|
||||||
|
return parent::getOauthToken();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setScope($scope)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setScope', [$scope]);
|
||||||
|
|
||||||
|
return parent::setScope($scope);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getScope()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getScope', []);
|
||||||
|
|
||||||
|
return parent::getScope();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSessionId($sessionId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSessionId', [$sessionId]);
|
||||||
|
|
||||||
|
return parent::setSessionId($sessionId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSessionId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSessionId', []);
|
||||||
|
|
||||||
|
return parent::getSessionId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setLastUsed(\DateTime $lastUsed)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastUsed', [$lastUsed]);
|
||||||
|
|
||||||
|
return parent::setLastUsed($lastUsed);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getLastUsed()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastUsed', []);
|
||||||
|
|
||||||
|
return parent::getLastUsed();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,279 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class AuthFailure extends \Alchemy\Phrasea\Model\Entities\AuthFailure implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'username', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'ip', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'locked', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'username', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'ip', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'locked', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\AuthFailure' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (AuthFailure $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUsername($username)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUsername', [$username]);
|
||||||
|
|
||||||
|
return parent::setUsername($username);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUsername()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUsername', []);
|
||||||
|
|
||||||
|
return parent::getUsername();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setIp($ip)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIp', [$ip]);
|
||||||
|
|
||||||
|
return parent::setIp($ip);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getIp()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIp', []);
|
||||||
|
|
||||||
|
return parent::getIp();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setLocked($locked)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLocked', [$locked]);
|
||||||
|
|
||||||
|
return parent::setLocked($locked);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getLocked()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLocked', []);
|
||||||
|
|
||||||
|
return parent::getLocked();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
488
resources/proxies/__CG__AlchemyPhraseaModelEntitiesBasket.php
Normal file
488
resources/proxies/__CG__AlchemyPhraseaModelEntitiesBasket.php
Normal file
@@ -0,0 +1,488 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class Basket extends \Alchemy\Phrasea\Model\Entities\Basket implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'description', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'isRead', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'pusher', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'archived', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'validation', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'elements', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'order'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'description', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'isRead', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'pusher', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'archived', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'validation', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'elements', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Basket' . "\0" . 'order'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (Basket $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
|
||||||
|
|
||||||
|
return parent::setName($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
|
||||||
|
|
||||||
|
return parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setDescription($description)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescription', [$description]);
|
||||||
|
|
||||||
|
return parent::setDescription($description);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getDescription()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDescription', []);
|
||||||
|
|
||||||
|
return parent::getDescription();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function markRead()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'markRead', []);
|
||||||
|
|
||||||
|
return parent::markRead();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function markUnread()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'markUnread', []);
|
||||||
|
|
||||||
|
return parent::markUnread();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isRead()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isRead', []);
|
||||||
|
|
||||||
|
return parent::isRead();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setPusher(\Alchemy\Phrasea\Model\Entities\User $user = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPusher', [$user]);
|
||||||
|
|
||||||
|
return parent::setPusher($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getPusher()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPusher', []);
|
||||||
|
|
||||||
|
return parent::getPusher();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setArchived($archived)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setArchived', [$archived]);
|
||||||
|
|
||||||
|
return parent::setArchived($archived);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getArchived()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getArchived', []);
|
||||||
|
|
||||||
|
return parent::getArchived();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setValidation(\Alchemy\Phrasea\Model\Entities\ValidationSession $validation = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setValidation', [$validation]);
|
||||||
|
|
||||||
|
return parent::setValidation($validation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getValidation()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValidation', []);
|
||||||
|
|
||||||
|
return parent::getValidation();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addElement(\Alchemy\Phrasea\Model\Entities\BasketElement $element)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addElement', [$element]);
|
||||||
|
|
||||||
|
return parent::addElement($element);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeElement(\Alchemy\Phrasea\Model\Entities\BasketElement $element)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeElement', [$element]);
|
||||||
|
|
||||||
|
return parent::removeElement($element);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setOrder(\Alchemy\Phrasea\Model\Entities\Order $order = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrder', [$order]);
|
||||||
|
|
||||||
|
return parent::setOrder($order);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOrder()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrder', []);
|
||||||
|
|
||||||
|
return parent::getOrder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getElements()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getElements', []);
|
||||||
|
|
||||||
|
return parent::getElements();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getElementsByOrder($order)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getElementsByOrder', [$order]);
|
||||||
|
|
||||||
|
return parent::getElementsByOrder($order);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function hasRecord(\Alchemy\Phrasea\Application $app, \record_adapter $record)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasRecord', [$app, $record]);
|
||||||
|
|
||||||
|
return parent::hasRecord($app, $record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSize(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSize', [$app]);
|
||||||
|
|
||||||
|
return parent::getSize($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,389 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class BasketElement extends \Alchemy\Phrasea\Model\Entities\BasketElement implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'record_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'sbas_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'ord', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'validation_datas', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'basket'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'record_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'sbas_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'ord', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'validation_datas', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\BasketElement' . "\0" . 'basket'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (BasketElement $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRecordId($recordId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRecordId', [$recordId]);
|
||||||
|
|
||||||
|
return parent::setRecordId($recordId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecordId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecordId', []);
|
||||||
|
|
||||||
|
return parent::getRecordId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSbasId($sbasId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSbasId', [$sbasId]);
|
||||||
|
|
||||||
|
return parent::setSbasId($sbasId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSbasId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSbasId', []);
|
||||||
|
|
||||||
|
return parent::getSbasId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecord(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecord', [$app]);
|
||||||
|
|
||||||
|
return parent::getRecord($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRecord(\record_adapter $record)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRecord', [$record]);
|
||||||
|
|
||||||
|
return parent::setRecord($record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setOrd($ord)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrd', [$ord]);
|
||||||
|
|
||||||
|
return parent::setOrd($ord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOrd()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrd', []);
|
||||||
|
|
||||||
|
return parent::getOrd();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addValidationData(\Alchemy\Phrasea\Model\Entities\ValidationData $validationDatas)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addValidationData', [$validationDatas]);
|
||||||
|
|
||||||
|
return parent::addValidationData($validationDatas);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeValidationData(\Alchemy\Phrasea\Model\Entities\ValidationData $validationDatas)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeValidationData', [$validationDatas]);
|
||||||
|
|
||||||
|
return parent::removeValidationData($validationDatas);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getValidationDatas()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValidationDatas', []);
|
||||||
|
|
||||||
|
return parent::getValidationDatas();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBasket(\Alchemy\Phrasea\Model\Entities\Basket $basket = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBasket', [$basket]);
|
||||||
|
|
||||||
|
return parent::setBasket($basket);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBasket()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBasket', []);
|
||||||
|
|
||||||
|
return parent::getBasket();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUserValidationDatas(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUserValidationDatas', [$user]);
|
||||||
|
|
||||||
|
return parent::getUserValidationDatas($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
587
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFeed.php
Normal file
587
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFeed.php
Normal file
@@ -0,0 +1,587 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class Feed extends \Alchemy\Phrasea\Model\Entities\Feed implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'public', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'iconUrl', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'baseId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'title', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'subtitle', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'updatedOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'publishers', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'entries', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'tokens'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'public', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'iconUrl', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'baseId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'title', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'subtitle', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'updatedOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'publishers', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'entries', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Feed' . "\0" . 'tokens'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (Feed $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setIsPublic($public)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsPublic', [$public]);
|
||||||
|
|
||||||
|
return parent::setIsPublic($public);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isPublic()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPublic', []);
|
||||||
|
|
||||||
|
return parent::isPublic();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setIconUrl($iconUrl)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIconUrl', [$iconUrl]);
|
||||||
|
|
||||||
|
return parent::setIconUrl($iconUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getIconUrl()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIconUrl', []);
|
||||||
|
|
||||||
|
return parent::getIconUrl();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBaseId($baseId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBaseId', [$baseId]);
|
||||||
|
|
||||||
|
return parent::setBaseId($baseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBaseId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBaseId', []);
|
||||||
|
|
||||||
|
return parent::getBaseId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setTitle($title)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTitle', [$title]);
|
||||||
|
|
||||||
|
return parent::setTitle($title);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getTitle()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTitle', []);
|
||||||
|
|
||||||
|
return parent::getTitle();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addPublisher(\Alchemy\Phrasea\Model\Entities\FeedPublisher $publishers)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addPublisher', [$publishers]);
|
||||||
|
|
||||||
|
return parent::addPublisher($publishers);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removePublisher(\Alchemy\Phrasea\Model\Entities\FeedPublisher $publishers)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removePublisher', [$publishers]);
|
||||||
|
|
||||||
|
return parent::removePublisher($publishers);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getPublishers()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPublishers', []);
|
||||||
|
|
||||||
|
return parent::getPublishers();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addEntry(\Alchemy\Phrasea\Model\Entities\FeedEntry $entries)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addEntry', [$entries]);
|
||||||
|
|
||||||
|
return parent::addEntry($entries);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeEntry(\Alchemy\Phrasea\Model\Entities\FeedEntry $entries)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeEntry', [$entries]);
|
||||||
|
|
||||||
|
return parent::removeEntry($entries);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getEntries()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEntries', []);
|
||||||
|
|
||||||
|
return parent::getEntries();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOwner()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOwner', []);
|
||||||
|
|
||||||
|
return parent::getOwner();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isOwner(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isOwner', [$user]);
|
||||||
|
|
||||||
|
return parent::isOwner($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCollection(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCollection', [$app]);
|
||||||
|
|
||||||
|
return parent::getCollection($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCollection(\collection $collection = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCollection', [$collection]);
|
||||||
|
|
||||||
|
return parent::setCollection($collection);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreatedOn($createdOn)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedOn', [$createdOn]);
|
||||||
|
|
||||||
|
return parent::setCreatedOn($createdOn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreatedOn()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedOn', []);
|
||||||
|
|
||||||
|
return parent::getCreatedOn();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdatedOn($updatedOn)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedOn', [$updatedOn]);
|
||||||
|
|
||||||
|
return parent::setUpdatedOn($updatedOn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdatedOn()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedOn', []);
|
||||||
|
|
||||||
|
return parent::getUpdatedOn();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isPublisher(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPublisher', [$user]);
|
||||||
|
|
||||||
|
return parent::isPublisher($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getPublisher(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPublisher', [$user]);
|
||||||
|
|
||||||
|
return parent::getPublisher($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSubtitle($subtitle)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSubtitle', [$subtitle]);
|
||||||
|
|
||||||
|
return parent::setSubtitle($subtitle);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSubtitle()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSubtitle', []);
|
||||||
|
|
||||||
|
return parent::getSubtitle();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isAggregated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isAggregated', []);
|
||||||
|
|
||||||
|
return parent::isAggregated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCountTotalEntries()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCountTotalEntries', []);
|
||||||
|
|
||||||
|
return parent::getCountTotalEntries();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function hasAccess(\Alchemy\Phrasea\Model\Entities\User $user, \Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasAccess', [$user, $app]);
|
||||||
|
|
||||||
|
return parent::hasAccess($user, $app);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addToken(\Alchemy\Phrasea\Model\Entities\FeedToken $tokens)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addToken', [$tokens]);
|
||||||
|
|
||||||
|
return parent::addToken($tokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeToken(\Alchemy\Phrasea\Model\Entities\FeedToken $tokens)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeToken', [$tokens]);
|
||||||
|
|
||||||
|
return parent::removeToken($tokens);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getTokens()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTokens', []);
|
||||||
|
|
||||||
|
return parent::getTokens();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addEntrie(\Alchemy\Phrasea\Model\Entities\FeedEntry $entries)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addEntrie', [$entries]);
|
||||||
|
|
||||||
|
return parent::addEntrie($entries);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeEntrie(\Alchemy\Phrasea\Model\Entities\FeedEntry $entries)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeEntrie', [$entries]);
|
||||||
|
|
||||||
|
return parent::removeEntrie($entries);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function hasPage($pageNumber, $nbEntriesByPage)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasPage', [$pageNumber, $nbEntriesByPage]);
|
||||||
|
|
||||||
|
return parent::hasPage($pageNumber, $nbEntriesByPage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isAccessible(\Alchemy\Phrasea\Model\Entities\User $user, \Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isAccessible', [$user, $app]);
|
||||||
|
|
||||||
|
return parent::isAccessible($user, $app);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
422
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFeedEntry.php
Normal file
422
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFeedEntry.php
Normal file
@@ -0,0 +1,422 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class FeedEntry extends \Alchemy\Phrasea\Model\Entities\FeedEntry implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'title', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'subtitle', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'authorName', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'authorEmail', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'updatedOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'items', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'publisher', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'feed'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'title', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'subtitle', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'authorName', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'authorEmail', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'updatedOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'items', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'publisher', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedEntry' . "\0" . 'feed'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (FeedEntry $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setTitle($title)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTitle', [$title]);
|
||||||
|
|
||||||
|
return parent::setTitle($title);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getTitle()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTitle', []);
|
||||||
|
|
||||||
|
return parent::getTitle();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSubtitle($subtitle)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSubtitle', [$subtitle]);
|
||||||
|
|
||||||
|
return parent::setSubtitle($subtitle);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSubtitle()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSubtitle', []);
|
||||||
|
|
||||||
|
return parent::getSubtitle();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAuthorName($authorName)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAuthorName', [$authorName]);
|
||||||
|
|
||||||
|
return parent::setAuthorName($authorName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAuthorName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAuthorName', []);
|
||||||
|
|
||||||
|
return parent::getAuthorName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAuthorEmail($authorEmail)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAuthorEmail', [$authorEmail]);
|
||||||
|
|
||||||
|
return parent::setAuthorEmail($authorEmail);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAuthorEmail()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAuthorEmail', []);
|
||||||
|
|
||||||
|
return parent::getAuthorEmail();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreatedOn($createdOn)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedOn', [$createdOn]);
|
||||||
|
|
||||||
|
return parent::setCreatedOn($createdOn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreatedOn()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedOn', []);
|
||||||
|
|
||||||
|
return parent::getCreatedOn();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdatedOn($updatedOn)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedOn', [$updatedOn]);
|
||||||
|
|
||||||
|
return parent::setUpdatedOn($updatedOn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdatedOn()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedOn', []);
|
||||||
|
|
||||||
|
return parent::getUpdatedOn();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addItem(\Alchemy\Phrasea\Model\Entities\FeedItem $items)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addItem', [$items]);
|
||||||
|
|
||||||
|
return parent::addItem($items);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeItem(\Alchemy\Phrasea\Model\Entities\FeedItem $items)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeItem', [$items]);
|
||||||
|
|
||||||
|
return parent::removeItem($items);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getItems()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getItems', []);
|
||||||
|
|
||||||
|
return parent::getItems();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setPublisher(\Alchemy\Phrasea\Model\Entities\FeedPublisher $publisher = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPublisher', [$publisher]);
|
||||||
|
|
||||||
|
return parent::setPublisher($publisher);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getPublisher()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPublisher', []);
|
||||||
|
|
||||||
|
return parent::getPublisher();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setFeed(\Alchemy\Phrasea\Model\Entities\Feed $feed = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFeed', [$feed]);
|
||||||
|
|
||||||
|
return parent::setFeed($feed);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getFeed()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFeed', []);
|
||||||
|
|
||||||
|
return parent::getFeed();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isPublisher(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPublisher', [$user]);
|
||||||
|
|
||||||
|
return parent::isPublisher($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getItem($id)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getItem', [$id]);
|
||||||
|
|
||||||
|
return parent::getItem($id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
345
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFeedItem.php
Normal file
345
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFeedItem.php
Normal file
@@ -0,0 +1,345 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class FeedItem extends \Alchemy\Phrasea\Model\Entities\FeedItem implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'recordId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'sbasId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'ord', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'updatedOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'entry'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'recordId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'sbasId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'ord', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'updatedOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedItem' . "\0" . 'entry'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (FeedItem $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRecordId($recordId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRecordId', [$recordId]);
|
||||||
|
|
||||||
|
return parent::setRecordId($recordId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecordId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecordId', []);
|
||||||
|
|
||||||
|
return parent::getRecordId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSbasId($sbasId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSbasId', [$sbasId]);
|
||||||
|
|
||||||
|
return parent::setSbasId($sbasId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSbasId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSbasId', []);
|
||||||
|
|
||||||
|
return parent::getSbasId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setEntry(\Alchemy\Phrasea\Model\Entities\FeedEntry $entry = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setEntry', [$entry]);
|
||||||
|
|
||||||
|
return parent::setEntry($entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getEntry()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEntry', []);
|
||||||
|
|
||||||
|
return parent::getEntry();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setOrd($ord)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrd', [$ord]);
|
||||||
|
|
||||||
|
return parent::setOrd($ord);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOrd()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrd', []);
|
||||||
|
|
||||||
|
return parent::getOrd();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreatedOn($createdOn)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedOn', [$createdOn]);
|
||||||
|
|
||||||
|
return parent::setCreatedOn($createdOn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreatedOn()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedOn', []);
|
||||||
|
|
||||||
|
return parent::getCreatedOn();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdatedOn($updatedOn)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedOn', [$updatedOn]);
|
||||||
|
|
||||||
|
return parent::setUpdatedOn($updatedOn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdatedOn()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedOn', []);
|
||||||
|
|
||||||
|
return parent::getUpdatedOn();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setLastInFeedItem()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastInFeedItem', []);
|
||||||
|
|
||||||
|
return parent::setLastInFeedItem();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecord(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecord', [$app]);
|
||||||
|
|
||||||
|
return parent::getRecord($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,279 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class FeedPublisher extends \Alchemy\Phrasea\Model\Entities\FeedPublisher implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'owner', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'feed'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'owner', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedPublisher' . "\0" . 'feed'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (FeedPublisher $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setIsOwner($owner)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsOwner', [$owner]);
|
||||||
|
|
||||||
|
return parent::setIsOwner($owner);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isOwner()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isOwner', []);
|
||||||
|
|
||||||
|
return parent::isOwner();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setFeed(\Alchemy\Phrasea\Model\Entities\Feed $feed = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFeed', [$feed]);
|
||||||
|
|
||||||
|
return parent::setFeed($feed);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getFeed()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFeed', []);
|
||||||
|
|
||||||
|
return parent::getFeed();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreatedOn($createdOn)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedOn', [$createdOn]);
|
||||||
|
|
||||||
|
return parent::setCreatedOn($createdOn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreatedOn()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedOn', []);
|
||||||
|
|
||||||
|
return parent::getCreatedOn();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
257
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFeedToken.php
Normal file
257
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFeedToken.php
Normal file
@@ -0,0 +1,257 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class FeedToken extends \Alchemy\Phrasea\Model\Entities\FeedToken implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedToken' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedToken' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedToken' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedToken' . "\0" . 'feed'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedToken' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedToken' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedToken' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FeedToken' . "\0" . 'feed'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (FeedToken $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setFeed(\Alchemy\Phrasea\Model\Entities\Feed $feed = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFeed', [$feed]);
|
||||||
|
|
||||||
|
return parent::setFeed($feed);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getFeed()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFeed', []);
|
||||||
|
|
||||||
|
return parent::getFeed();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setValue($value)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setValue', [$value]);
|
||||||
|
|
||||||
|
return parent::setValue($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getValue()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValue', []);
|
||||||
|
|
||||||
|
return parent::getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,433 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class FtpCredential extends \Alchemy\Phrasea\Model\Entities\FtpCredential implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'active', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'address', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'login', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'password', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'receptionFolder', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'repositoryPrefixName', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'passive', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'ssl', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'maxRetry', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'active', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'address', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'login', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'password', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'receptionFolder', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'repositoryPrefixName', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'passive', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'ssl', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'maxRetry', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpCredential' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (FtpCredential $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isActive()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isActive', []);
|
||||||
|
|
||||||
|
return parent::isActive();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setActive($active)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setActive', [$active]);
|
||||||
|
|
||||||
|
return parent::setActive($active);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAddress()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddress', []);
|
||||||
|
|
||||||
|
return parent::getAddress();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAddress($address)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAddress', [$address]);
|
||||||
|
|
||||||
|
return parent::setAddress($address);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getLogin()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLogin', []);
|
||||||
|
|
||||||
|
return parent::getLogin();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setLogin($login)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLogin', [$login]);
|
||||||
|
|
||||||
|
return parent::setLogin($login);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getPassword()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPassword', []);
|
||||||
|
|
||||||
|
return parent::getPassword();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setPassword($password)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPassword', [$password]);
|
||||||
|
|
||||||
|
return parent::setPassword($password);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getReceptionFolder()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getReceptionFolder', []);
|
||||||
|
|
||||||
|
return parent::getReceptionFolder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setReceptionFolder($receptionFolder)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setReceptionFolder', [$receptionFolder]);
|
||||||
|
|
||||||
|
return parent::setReceptionFolder($receptionFolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRepositoryPrefixName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRepositoryPrefixName', []);
|
||||||
|
|
||||||
|
return parent::getRepositoryPrefixName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRepositoryPrefixName($repositoryPrefixName)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRepositoryPrefixName', [$repositoryPrefixName]);
|
||||||
|
|
||||||
|
return parent::setRepositoryPrefixName($repositoryPrefixName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isPassive()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPassive', []);
|
||||||
|
|
||||||
|
return parent::isPassive();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setPassive($passive)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPassive', [$passive]);
|
||||||
|
|
||||||
|
return parent::setPassive($passive);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isSsl()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isSsl', []);
|
||||||
|
|
||||||
|
return parent::isSsl();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSsl($ssl)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSsl', [$ssl]);
|
||||||
|
|
||||||
|
return parent::setSsl($ssl);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getMaxRetry()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMaxRetry', []);
|
||||||
|
|
||||||
|
return parent::getMaxRetry();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setMaxRetry($maxRetry)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMaxRetry', [$maxRetry]);
|
||||||
|
|
||||||
|
return parent::setMaxRetry($maxRetry);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
609
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFtpExport.php
Normal file
609
resources/proxies/__CG__AlchemyPhraseaModelEntitiesFtpExport.php
Normal file
@@ -0,0 +1,609 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class FtpExport extends \Alchemy\Phrasea\Model\Entities\FtpExport implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'crash', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'nbretry', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'mail', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'addr', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'ssl', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'login', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'pwd', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'passif', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'destfolder', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'sendermail', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'textMailSender', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'textMailReceiver', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'foldertocreate', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'logfile', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'elements', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'crash', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'nbretry', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'mail', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'addr', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'ssl', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'login', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'pwd', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'passif', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'destfolder', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'sendermail', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'textMailSender', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'textMailReceiver', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'foldertocreate', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'logfile', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'elements', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExport' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (FtpExport $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCrash($crash)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCrash', [$crash]);
|
||||||
|
|
||||||
|
return parent::setCrash($crash);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCrash()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCrash', []);
|
||||||
|
|
||||||
|
return parent::getCrash();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function incrementCrash()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'incrementCrash', []);
|
||||||
|
|
||||||
|
return parent::incrementCrash();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setNbretry($nbretry)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNbretry', [$nbretry]);
|
||||||
|
|
||||||
|
return parent::setNbretry($nbretry);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getNbretry()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNbretry', []);
|
||||||
|
|
||||||
|
return parent::getNbretry();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setMail($mail)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMail', [$mail]);
|
||||||
|
|
||||||
|
return parent::setMail($mail);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getMail()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMail', []);
|
||||||
|
|
||||||
|
return parent::getMail();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAddr($addr)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAddr', [$addr]);
|
||||||
|
|
||||||
|
return parent::setAddr($addr);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAddr()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAddr', []);
|
||||||
|
|
||||||
|
return parent::getAddr();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSsl($ssl)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSsl', [$ssl]);
|
||||||
|
|
||||||
|
return parent::setSsl($ssl);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isSsl()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isSsl', []);
|
||||||
|
|
||||||
|
return parent::isSsl();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setLogin($login)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLogin', [$login]);
|
||||||
|
|
||||||
|
return parent::setLogin($login);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getLogin()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLogin', []);
|
||||||
|
|
||||||
|
return parent::getLogin();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setPwd($pwd)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPwd', [$pwd]);
|
||||||
|
|
||||||
|
return parent::setPwd($pwd);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getPwd()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPwd', []);
|
||||||
|
|
||||||
|
return parent::getPwd();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setPassif($passif)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPassif', [$passif]);
|
||||||
|
|
||||||
|
return parent::setPassif($passif);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isPassif()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPassif', []);
|
||||||
|
|
||||||
|
return parent::isPassif();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setDestfolder($destfolder)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDestfolder', [$destfolder]);
|
||||||
|
|
||||||
|
return parent::setDestfolder($destfolder);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getDestfolder()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDestfolder', []);
|
||||||
|
|
||||||
|
return parent::getDestfolder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSendermail($sendermail)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSendermail', [$sendermail]);
|
||||||
|
|
||||||
|
return parent::setSendermail($sendermail);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSendermail()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSendermail', []);
|
||||||
|
|
||||||
|
return parent::getSendermail();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setTextMailSender($textMailSender)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTextMailSender', [$textMailSender]);
|
||||||
|
|
||||||
|
return parent::setTextMailSender($textMailSender);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getTextMailSender()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTextMailSender', []);
|
||||||
|
|
||||||
|
return parent::getTextMailSender();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setTextMailReceiver($textMailReceiver)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTextMailReceiver', [$textMailReceiver]);
|
||||||
|
|
||||||
|
return parent::setTextMailReceiver($textMailReceiver);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getTextMailReceiver()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTextMailReceiver', []);
|
||||||
|
|
||||||
|
return parent::getTextMailReceiver();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setFoldertocreate($foldertocreate)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFoldertocreate', [$foldertocreate]);
|
||||||
|
|
||||||
|
return parent::setFoldertocreate($foldertocreate);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getFoldertocreate()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFoldertocreate', []);
|
||||||
|
|
||||||
|
return parent::getFoldertocreate();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setLogfile($logfile)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLogfile', [$logfile]);
|
||||||
|
|
||||||
|
return parent::setLogfile($logfile);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isLogfile()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isLogfile', []);
|
||||||
|
|
||||||
|
return parent::isLogfile();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addElement(\Alchemy\Phrasea\Model\Entities\FtpExportElement $elements)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addElement', [$elements]);
|
||||||
|
|
||||||
|
return parent::addElement($elements);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeElement(\Alchemy\Phrasea\Model\Entities\FtpExportElement $elements)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeElement', [$elements]);
|
||||||
|
|
||||||
|
return parent::removeElement($elements);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getElements()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getElements', []);
|
||||||
|
|
||||||
|
return parent::getElements();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,433 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class FtpExportElement extends \Alchemy\Phrasea\Model\Entities\FtpExportElement implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'recordId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'baseId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'subdef', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'filename', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'folder', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'error', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'done', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'export', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'businessfields', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'recordId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'baseId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'subdef', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'filename', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'folder', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'error', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'done', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'export', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'businessfields', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\FtpExportElement' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (FtpExportElement $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRecordId($recordId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRecordId', [$recordId]);
|
||||||
|
|
||||||
|
return parent::setRecordId($recordId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecordId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecordId', []);
|
||||||
|
|
||||||
|
return parent::getRecordId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBaseId($baseId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBaseId', [$baseId]);
|
||||||
|
|
||||||
|
return parent::setBaseId($baseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBaseId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBaseId', []);
|
||||||
|
|
||||||
|
return parent::getBaseId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSubdef($subdef)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSubdef', [$subdef]);
|
||||||
|
|
||||||
|
return parent::setSubdef($subdef);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSubdef()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSubdef', []);
|
||||||
|
|
||||||
|
return parent::getSubdef();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setFilename($filename)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFilename', [$filename]);
|
||||||
|
|
||||||
|
return parent::setFilename($filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getFilename()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFilename', []);
|
||||||
|
|
||||||
|
return parent::getFilename();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setFolder($folder)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFolder', [$folder]);
|
||||||
|
|
||||||
|
return parent::setFolder($folder);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getFolder()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFolder', []);
|
||||||
|
|
||||||
|
return parent::getFolder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setError($error)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setError', [$error]);
|
||||||
|
|
||||||
|
return parent::setError($error);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isError()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isError', []);
|
||||||
|
|
||||||
|
return parent::isError();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setDone($done)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDone', [$done]);
|
||||||
|
|
||||||
|
return parent::setDone($done);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isDone()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isDone', []);
|
||||||
|
|
||||||
|
return parent::isDone();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBusinessfields($businessfields)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBusinessfields', [$businessfields]);
|
||||||
|
|
||||||
|
return parent::setBusinessfields($businessfields);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isBusinessfields()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isBusinessfields', []);
|
||||||
|
|
||||||
|
return parent::isBusinessfields();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setExport(\Alchemy\Phrasea\Model\Entities\FtpExport $export = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setExport', [$export]);
|
||||||
|
|
||||||
|
return parent::setExport($export);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getExport()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getExport', []);
|
||||||
|
|
||||||
|
return parent::getExport();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,301 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class LazaretAttribute extends \Alchemy\Phrasea\Model\Entities\LazaretAttribute implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'lazaretFile'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretAttribute' . "\0" . 'lazaretFile'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (LazaretAttribute $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
|
||||||
|
|
||||||
|
return parent::setName($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
|
||||||
|
|
||||||
|
return parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setValue($value)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setValue', [$value]);
|
||||||
|
|
||||||
|
return parent::setValue($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getValue()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValue', []);
|
||||||
|
|
||||||
|
return parent::getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setLazaretFile(\Alchemy\Phrasea\Model\Entities\LazaretFile $lazaretFile = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLazaretFile', [$lazaretFile]);
|
||||||
|
|
||||||
|
return parent::setLazaretFile($lazaretFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getLazaretFile()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLazaretFile', []);
|
||||||
|
|
||||||
|
return parent::getLazaretFile();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,257 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class LazaretCheck extends \Alchemy\Phrasea\Model\Entities\LazaretCheck implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretCheck' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretCheck' . "\0" . 'checkClassname', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretCheck' . "\0" . 'lazaretFile'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretCheck' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretCheck' . "\0" . 'checkClassname', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretCheck' . "\0" . 'lazaretFile'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (LazaretCheck $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCheckClassname($checkClassname)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCheckClassname', [$checkClassname]);
|
||||||
|
|
||||||
|
return parent::setCheckClassname($checkClassname);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCheckClassname()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCheckClassname', []);
|
||||||
|
|
||||||
|
return parent::getCheckClassname();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setLazaretFile(\Alchemy\Phrasea\Model\Entities\LazaretFile $lazaretFile = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLazaretFile', [$lazaretFile]);
|
||||||
|
|
||||||
|
return parent::setLazaretFile($lazaretFile);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getLazaretFile()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLazaretFile', []);
|
||||||
|
|
||||||
|
return parent::getLazaretFile();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getReason(\Symfony\Component\Translation\TranslatorInterface $translator)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getReason', [$translator]);
|
||||||
|
|
||||||
|
return parent::getReason($translator);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function listConflicts(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'listConflicts', [$app]);
|
||||||
|
|
||||||
|
return parent::listConflicts($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,521 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class LazaretFile extends \Alchemy\Phrasea\Model\Entities\LazaretFile implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'filename', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'thumbFilename', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'originalName', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'base_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'uuid', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'sha256', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'forced', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'attributes', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'checks', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'session'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'filename', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'thumbFilename', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'originalName', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'base_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'uuid', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'sha256', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'forced', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'attributes', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'checks', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretFile' . "\0" . 'session'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (LazaretFile $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setFilename($filename)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFilename', [$filename]);
|
||||||
|
|
||||||
|
return parent::setFilename($filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getFilename()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFilename', []);
|
||||||
|
|
||||||
|
return parent::getFilename();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setThumbFilename($thumbFilename)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setThumbFilename', [$thumbFilename]);
|
||||||
|
|
||||||
|
return parent::setThumbFilename($thumbFilename);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getThumbFilename()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getThumbFilename', []);
|
||||||
|
|
||||||
|
return parent::getThumbFilename();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setOriginalName($originalName)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOriginalName', [$originalName]);
|
||||||
|
|
||||||
|
return parent::setOriginalName($originalName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOriginalName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOriginalName', []);
|
||||||
|
|
||||||
|
return parent::getOriginalName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBaseId($baseId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBaseId', [$baseId]);
|
||||||
|
|
||||||
|
return parent::setBaseId($baseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBaseId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBaseId', []);
|
||||||
|
|
||||||
|
return parent::getBaseId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCollection(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCollection', [$app]);
|
||||||
|
|
||||||
|
return parent::getCollection($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUuid($uuid)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUuid', [$uuid]);
|
||||||
|
|
||||||
|
return parent::setUuid($uuid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUuid()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUuid', []);
|
||||||
|
|
||||||
|
return parent::getUuid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSha256($sha256)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSha256', [$sha256]);
|
||||||
|
|
||||||
|
return parent::setSha256($sha256);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSha256()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSha256', []);
|
||||||
|
|
||||||
|
return parent::getSha256();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setForced($forced)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setForced', [$forced]);
|
||||||
|
|
||||||
|
return parent::setForced($forced);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getForced()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getForced', []);
|
||||||
|
|
||||||
|
return parent::getForced();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addAttribute(\Alchemy\Phrasea\Model\Entities\LazaretAttribute $attributes)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addAttribute', [$attributes]);
|
||||||
|
|
||||||
|
return parent::addAttribute($attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeAttribute(\Alchemy\Phrasea\Model\Entities\LazaretAttribute $attributes)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeAttribute', [$attributes]);
|
||||||
|
|
||||||
|
return parent::removeAttribute($attributes);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAttributes()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAttributes', []);
|
||||||
|
|
||||||
|
return parent::getAttributes();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addCheck(\Alchemy\Phrasea\Model\Entities\LazaretCheck $checks)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addCheck', [$checks]);
|
||||||
|
|
||||||
|
return parent::addCheck($checks);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeCheck(\Alchemy\Phrasea\Model\Entities\LazaretCheck $checks)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeCheck', [$checks]);
|
||||||
|
|
||||||
|
return parent::removeCheck($checks);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCheckerName(\Alchemy\Phrasea\Model\Entities\LazaretCheck $checks)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCheckerName', [$checks]);
|
||||||
|
|
||||||
|
return parent::getCheckerName($checks);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getChecks()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getChecks', []);
|
||||||
|
|
||||||
|
return parent::getChecks();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getChecksWhithNameKey()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getChecksWhithNameKey', []);
|
||||||
|
|
||||||
|
return parent::getChecksWhithNameKey();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSession(\Alchemy\Phrasea\Model\Entities\LazaretSession $session = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSession', [$session]);
|
||||||
|
|
||||||
|
return parent::setSession($session);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSession()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSession', []);
|
||||||
|
|
||||||
|
return parent::getSession();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecordsToSubstitute(\Alchemy\Phrasea\Application $app, $includeReason = false)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecordsToSubstitute', [$app, $includeReason]);
|
||||||
|
|
||||||
|
return parent::getRecordsToSubstitute($app, $includeReason);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,290 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class LazaretSession extends \Alchemy\Phrasea\Model\Entities\LazaretSession implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'files'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\LazaretSession' . "\0" . 'files'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (LazaretSession $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addFile(\Alchemy\Phrasea\Model\Entities\LazaretFile $files)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addFile', [$files]);
|
||||||
|
|
||||||
|
return parent::addFile($files);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeFile(\Alchemy\Phrasea\Model\Entities\LazaretFile $files)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeFile', [$files]);
|
||||||
|
|
||||||
|
return parent::removeFile($files);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getFiles()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFiles', []);
|
||||||
|
|
||||||
|
return parent::getFiles();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
411
resources/proxies/__CG__AlchemyPhraseaModelEntitiesOrder.php
Normal file
411
resources/proxies/__CG__AlchemyPhraseaModelEntitiesOrder.php
Normal file
@@ -0,0 +1,411 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class Order extends \Alchemy\Phrasea\Model\Entities\Order implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'orderUsage', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'todo', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'deadline', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'elements', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'basket', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'notificationMethod'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'orderUsage', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'todo', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'deadline', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'createdOn', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'elements', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'basket', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Order' . "\0" . 'notificationMethod'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (Order $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getDeadline()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeadline', []);
|
||||||
|
|
||||||
|
return parent::getDeadline();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setDeadline($deadline)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeadline', [$deadline]);
|
||||||
|
|
||||||
|
return parent::setDeadline($deadline);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreatedOn()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedOn', []);
|
||||||
|
|
||||||
|
return parent::getCreatedOn();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreatedOn($createdOn)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedOn', [$createdOn]);
|
||||||
|
|
||||||
|
return parent::setCreatedOn($createdOn);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addElement(\Alchemy\Phrasea\Model\Entities\OrderElement $elements)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addElement', [$elements]);
|
||||||
|
|
||||||
|
return parent::addElement($elements);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeElement(\Alchemy\Phrasea\Model\Entities\OrderElement $elements)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeElement', [$elements]);
|
||||||
|
|
||||||
|
return parent::removeElement($elements);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getElements()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getElements', []);
|
||||||
|
|
||||||
|
return parent::getElements();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getTodo()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTodo', []);
|
||||||
|
|
||||||
|
return parent::getTodo();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setTodo($todo)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTodo', [$todo]);
|
||||||
|
|
||||||
|
return parent::setTodo($todo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function decrementTodo($count)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'decrementTodo', [$count]);
|
||||||
|
|
||||||
|
return parent::decrementTodo($count);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getTotal()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTotal', []);
|
||||||
|
|
||||||
|
return parent::getTotal();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getTotalTreatedItems()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTotalTreatedItems', []);
|
||||||
|
|
||||||
|
return parent::getTotalTreatedItems();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOrderUsage()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrderUsage', []);
|
||||||
|
|
||||||
|
return parent::getOrderUsage();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setOrderUsage($orderUsage)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrderUsage', [$orderUsage]);
|
||||||
|
|
||||||
|
return parent::setOrderUsage($orderUsage);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBasket()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBasket', []);
|
||||||
|
|
||||||
|
return parent::getBasket();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBasket(\Alchemy\Phrasea\Model\Entities\Basket $basket = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBasket', [$basket]);
|
||||||
|
|
||||||
|
return parent::setBasket($basket);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getNotificationMethod()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNotificationMethod', []);
|
||||||
|
|
||||||
|
return parent::getNotificationMethod();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setNotificationMethod($methodName)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNotificationMethod', [$methodName]);
|
||||||
|
|
||||||
|
return parent::setNotificationMethod($methodName);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,323 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class OrderElement extends \Alchemy\Phrasea\Model\Entities\OrderElement implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'baseId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'recordId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'orderMaster', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'deny', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'order'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'baseId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'recordId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'orderMaster', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'deny', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\OrderElement' . "\0" . 'order'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (OrderElement $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setOrderMaster(\Alchemy\Phrasea\Model\Entities\User $user = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrderMaster', [$user]);
|
||||||
|
|
||||||
|
return parent::setOrderMaster($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOrderMaster()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrderMaster', []);
|
||||||
|
|
||||||
|
return parent::getOrderMaster();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setDeny($deny)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeny', [$deny]);
|
||||||
|
|
||||||
|
return parent::setDeny($deny);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getDeny()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeny', []);
|
||||||
|
|
||||||
|
return parent::getDeny();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setOrder(\Alchemy\Phrasea\Model\Entities\Order $order = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setOrder', [$order]);
|
||||||
|
|
||||||
|
return parent::setOrder($order);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOrder()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOrder', []);
|
||||||
|
|
||||||
|
return parent::getOrder();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBaseId($baseId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBaseId', [$baseId]);
|
||||||
|
|
||||||
|
return parent::setBaseId($baseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBaseId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBaseId', []);
|
||||||
|
|
||||||
|
return parent::getBaseId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRecordId($recordId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRecordId', [$recordId]);
|
||||||
|
|
||||||
|
return parent::setRecordId($recordId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecordId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecordId', []);
|
||||||
|
|
||||||
|
return parent::getRecordId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecord(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecord', [$app]);
|
||||||
|
|
||||||
|
return parent::getRecord($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSbasId(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSbasId', [$app]);
|
||||||
|
|
||||||
|
return parent::getSbasId($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
301
resources/proxies/__CG__AlchemyPhraseaModelEntitiesPreset.php
Normal file
301
resources/proxies/__CG__AlchemyPhraseaModelEntitiesPreset.php
Normal file
@@ -0,0 +1,301 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class Preset extends \Alchemy\Phrasea\Model\Entities\Preset implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'sbasId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'title', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'data', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'sbasId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'title', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'data', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Preset' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (Preset $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSbasId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSbasId', []);
|
||||||
|
|
||||||
|
return parent::getSbasId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSbasId($sbasId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSbasId', [$sbasId]);
|
||||||
|
|
||||||
|
return parent::setSbasId($sbasId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getTitle()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTitle', []);
|
||||||
|
|
||||||
|
return parent::getTitle();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setTitle($title)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTitle', [$title]);
|
||||||
|
|
||||||
|
return parent::setTitle($title);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setData(array $data)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setData', [$data]);
|
||||||
|
|
||||||
|
return parent::setData($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getData()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getData', []);
|
||||||
|
|
||||||
|
return parent::getData();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,345 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class Registration extends \Alchemy\Phrasea\Model\Entities\Registration implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'baseId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'pending', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'rejected', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'baseId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'pending', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'rejected', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Registration' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (Registration $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setPending($pending)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPending', [$pending]);
|
||||||
|
|
||||||
|
return parent::setPending($pending);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isPending()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isPending', []);
|
||||||
|
|
||||||
|
return parent::isPending();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRejected($rejected)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRejected', [$rejected]);
|
||||||
|
|
||||||
|
return parent::setRejected($rejected);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isRejected()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isRejected', []);
|
||||||
|
|
||||||
|
return parent::isRejected();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCollection(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCollection', [$app]);
|
||||||
|
|
||||||
|
return parent::getCollection($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCollection(\collection $collection)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCollection', [$collection]);
|
||||||
|
|
||||||
|
return parent::setCollection($collection);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBaseId($baseId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBaseId', [$baseId]);
|
||||||
|
|
||||||
|
return parent::setBaseId($baseId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBaseId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBaseId', []);
|
||||||
|
|
||||||
|
return parent::getBaseId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
224
resources/proxies/__CG__AlchemyPhraseaModelEntitiesSecret.php
Normal file
224
resources/proxies/__CG__AlchemyPhraseaModelEntitiesSecret.php
Normal file
@@ -0,0 +1,224 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class Secret extends \Alchemy\Phrasea\Model\Entities\Secret implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Secret' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Secret' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Secret' . "\0" . 'token', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Secret' . "\0" . 'creator'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Secret' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Secret' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Secret' . "\0" . 'token', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Secret' . "\0" . 'creator'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (Secret $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreator()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreator', []);
|
||||||
|
|
||||||
|
return parent::getCreator();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getToken()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getToken', []);
|
||||||
|
|
||||||
|
return parent::getToken();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
510
resources/proxies/__CG__AlchemyPhraseaModelEntitiesSession.php
Normal file
510
resources/proxies/__CG__AlchemyPhraseaModelEntitiesSession.php
Normal file
@@ -0,0 +1,510 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class Session extends \Alchemy\Phrasea\Model\Entities\Session implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'user_agent', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'ip_address', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'platform', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'browser_name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'browser_version', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'screen_width', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'screen_height', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'token', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'nonce', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'modules'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'user_agent', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'ip_address', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'platform', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'browser_name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'browser_version', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'screen_width', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'screen_height', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'token', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'nonce', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Session' . "\0" . 'modules'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (Session $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUserAgent($userAgent)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUserAgent', [$userAgent]);
|
||||||
|
|
||||||
|
return parent::setUserAgent($userAgent);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUserAgent()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUserAgent', []);
|
||||||
|
|
||||||
|
return parent::getUserAgent();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setIpAddress($ipAddress)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIpAddress', [$ipAddress]);
|
||||||
|
|
||||||
|
return parent::setIpAddress($ipAddress);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getIpAddress()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIpAddress', []);
|
||||||
|
|
||||||
|
return parent::getIpAddress();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setPlatform($platform)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPlatform', [$platform]);
|
||||||
|
|
||||||
|
return parent::setPlatform($platform);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getPlatform()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPlatform', []);
|
||||||
|
|
||||||
|
return parent::getPlatform();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBrowserName($browserName)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBrowserName', [$browserName]);
|
||||||
|
|
||||||
|
return parent::setBrowserName($browserName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBrowserName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBrowserName', []);
|
||||||
|
|
||||||
|
return parent::getBrowserName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBrowserVersion($browserVersion)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBrowserVersion', [$browserVersion]);
|
||||||
|
|
||||||
|
return parent::setBrowserVersion($browserVersion);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBrowserVersion()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBrowserVersion', []);
|
||||||
|
|
||||||
|
return parent::getBrowserVersion();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setScreenWidth($screenWidth)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setScreenWidth', [$screenWidth]);
|
||||||
|
|
||||||
|
return parent::setScreenWidth($screenWidth);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getScreenWidth()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getScreenWidth', []);
|
||||||
|
|
||||||
|
return parent::getScreenWidth();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setScreenHeight($screenHeight)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setScreenHeight', [$screenHeight]);
|
||||||
|
|
||||||
|
return parent::setScreenHeight($screenHeight);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getScreenHeight()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getScreenHeight', []);
|
||||||
|
|
||||||
|
return parent::getScreenHeight();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setToken($token)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setToken', [$token]);
|
||||||
|
|
||||||
|
return parent::setToken($token);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getToken()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getToken', []);
|
||||||
|
|
||||||
|
return parent::getToken();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setNonce($nonce)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNonce', [$nonce]);
|
||||||
|
|
||||||
|
return parent::setNonce($nonce);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getNonce()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNonce', []);
|
||||||
|
|
||||||
|
return parent::getNonce();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addModule(\Alchemy\Phrasea\Model\Entities\SessionModule $modules)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addModule', [$modules]);
|
||||||
|
|
||||||
|
return parent::addModule($modules);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeModule(\Alchemy\Phrasea\Model\Entities\SessionModule $modules)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeModule', [$modules]);
|
||||||
|
|
||||||
|
return parent::removeModule($modules);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getModules()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getModules', []);
|
||||||
|
|
||||||
|
return parent::getModules();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getModuleById($moduleId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getModuleById', [$moduleId]);
|
||||||
|
|
||||||
|
return parent::getModuleById($moduleId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function hasModuleId($moduleId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasModuleId', [$moduleId]);
|
||||||
|
|
||||||
|
return parent::hasModuleId($moduleId);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,279 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class SessionModule extends \Alchemy\Phrasea\Model\Entities\SessionModule implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'module_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'session'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'module_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\SessionModule' . "\0" . 'session'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (SessionModule $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setModuleId($moduleId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setModuleId', [$moduleId]);
|
||||||
|
|
||||||
|
return parent::setModuleId($moduleId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getModuleId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getModuleId', []);
|
||||||
|
|
||||||
|
return parent::getModuleId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSession(\Alchemy\Phrasea\Model\Entities\Session $session = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSession', [$session]);
|
||||||
|
|
||||||
|
return parent::setSession($session);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSession()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSession', []);
|
||||||
|
|
||||||
|
return parent::getSession();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
301
resources/proxies/__CG__AlchemyPhraseaModelEntitiesStoryWZ.php
Normal file
301
resources/proxies/__CG__AlchemyPhraseaModelEntitiesStoryWZ.php
Normal file
@@ -0,0 +1,301 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class StoryWZ extends \Alchemy\Phrasea\Model\Entities\StoryWZ implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'sbas_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'record_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'sbas_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'record_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\StoryWZ' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (StoryWZ $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSbasId($sbasId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSbasId', [$sbasId]);
|
||||||
|
|
||||||
|
return parent::setSbasId($sbasId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSbasId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSbasId', []);
|
||||||
|
|
||||||
|
return parent::getSbasId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRecordId($recordId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRecordId', [$recordId]);
|
||||||
|
|
||||||
|
return parent::setRecordId($recordId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecordId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecordId', []);
|
||||||
|
|
||||||
|
return parent::getRecordId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRecord(\Alchemy\Phrasea\Application $app)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRecord', [$app]);
|
||||||
|
|
||||||
|
return parent::getRecord($app);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRecord(\record_adapter $record)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRecord', [$record]);
|
||||||
|
|
||||||
|
return parent::setRecord($record);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
433
resources/proxies/__CG__AlchemyPhraseaModelEntitiesTask.php
Normal file
433
resources/proxies/__CG__AlchemyPhraseaModelEntitiesTask.php
Normal file
@@ -0,0 +1,433 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class Task extends \Alchemy\Phrasea\Model\Entities\Task implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'jobId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'settings', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'completed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'status', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'crashed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'singleRun', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'lastExecution', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'period'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'jobId', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'settings', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'completed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'status', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'crashed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'singleRun', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'lastExecution', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Task' . "\0" . 'period'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (Task $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
|
||||||
|
|
||||||
|
return parent::setName($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
|
||||||
|
|
||||||
|
return parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setJobId($jobId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setJobId', [$jobId]);
|
||||||
|
|
||||||
|
return parent::setJobId($jobId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getJobId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getJobId', []);
|
||||||
|
|
||||||
|
return parent::getJobId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSettings($settings)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSettings', [$settings]);
|
||||||
|
|
||||||
|
return parent::setSettings($settings);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSettings()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSettings', []);
|
||||||
|
|
||||||
|
return parent::getSettings();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCompleted($completed)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCompleted', [$completed]);
|
||||||
|
|
||||||
|
return parent::setCompleted($completed);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isCompleted()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isCompleted', []);
|
||||||
|
|
||||||
|
return parent::isCompleted();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setStatus($status)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setStatus', [$status]);
|
||||||
|
|
||||||
|
return parent::setStatus($status);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getStatus()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatus', []);
|
||||||
|
|
||||||
|
return parent::getStatus();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCrashed($crashed)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCrashed', [$crashed]);
|
||||||
|
|
||||||
|
return parent::setCrashed($crashed);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCrashed()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCrashed', []);
|
||||||
|
|
||||||
|
return parent::getCrashed();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSingleRun($singleRun)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSingleRun', [$singleRun]);
|
||||||
|
|
||||||
|
return parent::setSingleRun($singleRun);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isSingleRun()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isSingleRun', []);
|
||||||
|
|
||||||
|
return parent::isSingleRun();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated($updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setExecuted($lastExecution)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setExecuted', [$lastExecution]);
|
||||||
|
|
||||||
|
return parent::setExecuted($lastExecution);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getLastExecution()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastExecution', []);
|
||||||
|
|
||||||
|
return parent::getLastExecution();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getPeriod()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPeriod', []);
|
||||||
|
|
||||||
|
return parent::getPeriod();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setPeriod($period)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPeriod', [$period]);
|
||||||
|
|
||||||
|
return parent::setPeriod($period);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
334
resources/proxies/__CG__AlchemyPhraseaModelEntitiesToken.php
Normal file
334
resources/proxies/__CG__AlchemyPhraseaModelEntitiesToken.php
Normal file
@@ -0,0 +1,334 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class Token extends \Alchemy\Phrasea\Model\Entities\Token implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'type', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'data', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'expiration'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'type', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'data', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\Token' . "\0" . 'expiration'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (Token $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setValue($value)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setValue', [$value]);
|
||||||
|
|
||||||
|
return parent::setValue($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getValue()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return parent::getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValue', []);
|
||||||
|
|
||||||
|
return parent::getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setType($type)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', [$type]);
|
||||||
|
|
||||||
|
return parent::setType($type);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getType()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getType', []);
|
||||||
|
|
||||||
|
return parent::getType();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setData($data)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setData', [$data]);
|
||||||
|
|
||||||
|
return parent::setData($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getData()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getData', []);
|
||||||
|
|
||||||
|
return parent::getData();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated($created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated($updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setExpiration(\DateTime $expiration = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setExpiration', [$expiration]);
|
||||||
|
|
||||||
|
return parent::setExpiration($expiration);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getExpiration()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getExpiration', []);
|
||||||
|
|
||||||
|
return parent::getExpiration();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
1082
resources/proxies/__CG__AlchemyPhraseaModelEntitiesUser.php
Normal file
1082
resources/proxies/__CG__AlchemyPhraseaModelEntitiesUser.php
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,301 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class UserNotificationSetting extends \Alchemy\Phrasea\Model\Entities\UserNotificationSetting implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserNotificationSetting' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (UserNotificationSetting $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
|
||||||
|
|
||||||
|
return parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
|
||||||
|
|
||||||
|
return parent::setName($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getValue()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValue', []);
|
||||||
|
|
||||||
|
return parent::getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setValue($value)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setValue', [$value]);
|
||||||
|
|
||||||
|
return parent::setValue($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated($updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
257
resources/proxies/__CG__AlchemyPhraseaModelEntitiesUserQuery.php
Normal file
257
resources/proxies/__CG__AlchemyPhraseaModelEntitiesUserQuery.php
Normal file
@@ -0,0 +1,257 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class UserQuery extends \Alchemy\Phrasea\Model\Entities\UserQuery implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserQuery' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserQuery' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserQuery' . "\0" . 'query', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserQuery' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserQuery' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserQuery' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserQuery' . "\0" . 'query', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserQuery' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (UserQuery $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getQuery()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getQuery', []);
|
||||||
|
|
||||||
|
return parent::getQuery();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setQuery($query)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setQuery', [$query]);
|
||||||
|
|
||||||
|
return parent::setQuery($query);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,301 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class UserSetting extends \Alchemy\Phrasea\Model\Entities\UserSetting implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'value', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UserSetting' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (UserSetting $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
|
||||||
|
|
||||||
|
return parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
|
||||||
|
|
||||||
|
return parent::setName($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getValue()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValue', []);
|
||||||
|
|
||||||
|
return parent::getValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setValue($value)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setValue', [$value]);
|
||||||
|
|
||||||
|
return parent::setValue($value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,301 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class UsrAuthProvider extends \Alchemy\Phrasea\Model\Entities\UsrAuthProvider implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'provider', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'distant_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'provider', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'distant_id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrAuthProvider' . "\0" . 'updated'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (UsrAuthProvider $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setProvider($provider)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setProvider', [$provider]);
|
||||||
|
|
||||||
|
return parent::setProvider($provider);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getProvider()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getProvider', []);
|
||||||
|
|
||||||
|
return parent::getProvider();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setDistantId($distantId)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDistantId', [$distantId]);
|
||||||
|
|
||||||
|
return parent::setDistantId($distantId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getDistantId()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDistantId', []);
|
||||||
|
|
||||||
|
return parent::getDistantId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
356
resources/proxies/__CG__AlchemyPhraseaModelEntitiesUsrList.php
Normal file
356
resources/proxies/__CG__AlchemyPhraseaModelEntitiesUsrList.php
Normal file
@@ -0,0 +1,356 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class UsrList extends \Alchemy\Phrasea\Model\Entities\UsrList implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'owners', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'entries'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'owners', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrList' . "\0" . 'entries'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (UsrList $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
|
||||||
|
|
||||||
|
return parent::setName($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
|
||||||
|
|
||||||
|
return parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addOwner(\Alchemy\Phrasea\Model\Entities\UsrListOwner $owners)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addOwner', [$owners]);
|
||||||
|
|
||||||
|
return parent::addOwner($owners);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeOwner(\Alchemy\Phrasea\Model\Entities\UsrListOwner $owners)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeOwner', [$owners]);
|
||||||
|
|
||||||
|
return parent::removeOwner($owners);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOwners()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOwners', []);
|
||||||
|
|
||||||
|
return parent::getOwners();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addEntrie(\Alchemy\Phrasea\Model\Entities\UsrListEntry $entries)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addEntrie', [$entries]);
|
||||||
|
|
||||||
|
return parent::addEntrie($entries);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeEntrie(\Alchemy\Phrasea\Model\Entities\UsrListEntry $entries)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeEntrie', [$entries]);
|
||||||
|
|
||||||
|
return parent::removeEntrie($entries);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getEntries()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getEntries', []);
|
||||||
|
|
||||||
|
return parent::getEntries();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function hasAccess(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'hasAccess', [$user]);
|
||||||
|
|
||||||
|
return parent::hasAccess($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getOwner(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getOwner', [$user]);
|
||||||
|
|
||||||
|
return parent::getOwner($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function has(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'has', [$user]);
|
||||||
|
|
||||||
|
return parent::has($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,279 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class UsrListEntry extends \Alchemy\Phrasea\Model\Entities\UsrListEntry implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'list'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListEntry' . "\0" . 'list'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (UsrListEntry $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setList(\Alchemy\Phrasea\Model\Entities\UsrList $list = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setList', [$list]);
|
||||||
|
|
||||||
|
return parent::setList($list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getList()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getList', []);
|
||||||
|
|
||||||
|
return parent::getList();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,301 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class UsrListOwner extends \Alchemy\Phrasea\Model\Entities\UsrListOwner implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'role', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'list'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'user', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'role', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\UsrListOwner' . "\0" . 'list'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (UsrListOwner $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setRole($role)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRole', [$role]);
|
||||||
|
|
||||||
|
return parent::setRole($role);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRole()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRole', []);
|
||||||
|
|
||||||
|
return parent::getRole();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setList(\Alchemy\Phrasea\Model\Entities\UsrList $list = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setList', [$list]);
|
||||||
|
|
||||||
|
return parent::setList($list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getList()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getList', []);
|
||||||
|
|
||||||
|
return parent::getList();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,301 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class ValidationData extends \Alchemy\Phrasea\Model\Entities\ValidationData implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'agreement', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'note', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'participant', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'basket_element'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'agreement', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'note', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'participant', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationData' . "\0" . 'basket_element'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (ValidationData $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setAgreement($agreement)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAgreement', [$agreement]);
|
||||||
|
|
||||||
|
return parent::setAgreement($agreement);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getAgreement()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getAgreement', []);
|
||||||
|
|
||||||
|
return parent::getAgreement();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setNote($note)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setNote', [$note]);
|
||||||
|
|
||||||
|
return parent::setNote($note);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getNote()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getNote', []);
|
||||||
|
|
||||||
|
return parent::getNote();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setParticipant(\Alchemy\Phrasea\Model\Entities\ValidationParticipant $participant = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setParticipant', [$participant]);
|
||||||
|
|
||||||
|
return parent::setParticipant($participant);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getParticipant()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getParticipant', []);
|
||||||
|
|
||||||
|
return parent::getParticipant();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBasketElement(\Alchemy\Phrasea\Model\Entities\BasketElement $basketElement = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBasketElement', [$basketElement]);
|
||||||
|
|
||||||
|
return parent::setBasketElement($basketElement);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBasketElement()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBasketElement', []);
|
||||||
|
|
||||||
|
return parent::getBasketElement();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,389 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class ValidationParticipant extends \Alchemy\Phrasea\Model\Entities\ValidationParticipant implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'is_aware', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'is_confirmed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'can_agree', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'can_see_others', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'reminded', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'datas', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'session', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'user'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'is_aware', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'is_confirmed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'can_agree', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'can_see_others', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'reminded', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'datas', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'session', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationParticipant' . "\0" . 'user'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (ValidationParticipant $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUser(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUser', [$user]);
|
||||||
|
|
||||||
|
return parent::setUser($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUser()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUser', []);
|
||||||
|
|
||||||
|
return parent::getUser();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setIsAware($isAware)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsAware', [$isAware]);
|
||||||
|
|
||||||
|
return parent::setIsAware($isAware);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getIsAware()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsAware', []);
|
||||||
|
|
||||||
|
return parent::getIsAware();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setIsConfirmed($isConfirmed)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsConfirmed', [$isConfirmed]);
|
||||||
|
|
||||||
|
return parent::setIsConfirmed($isConfirmed);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getIsConfirmed()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsConfirmed', []);
|
||||||
|
|
||||||
|
return parent::getIsConfirmed();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCanAgree($canAgree)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCanAgree', [$canAgree]);
|
||||||
|
|
||||||
|
return parent::setCanAgree($canAgree);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCanAgree()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCanAgree', []);
|
||||||
|
|
||||||
|
return parent::getCanAgree();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCanSeeOthers($canSeeOthers)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCanSeeOthers', [$canSeeOthers]);
|
||||||
|
|
||||||
|
return parent::setCanSeeOthers($canSeeOthers);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCanSeeOthers()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCanSeeOthers', []);
|
||||||
|
|
||||||
|
return parent::getCanSeeOthers();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setReminded($reminded)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setReminded', [$reminded]);
|
||||||
|
|
||||||
|
return parent::setReminded($reminded);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getReminded()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getReminded', []);
|
||||||
|
|
||||||
|
return parent::getReminded();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addData(\Alchemy\Phrasea\Model\Entities\ValidationData $datas)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addData', [$datas]);
|
||||||
|
|
||||||
|
return parent::addData($datas);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeData(\Alchemy\Phrasea\Model\Entities\ValidationData $datas)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeData', [$datas]);
|
||||||
|
|
||||||
|
return parent::removeData($datas);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getDatas()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDatas', []);
|
||||||
|
|
||||||
|
return parent::getDatas();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setSession(\Alchemy\Phrasea\Model\Entities\ValidationSession $session = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSession', [$session]);
|
||||||
|
|
||||||
|
return parent::setSession($session);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getSession()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSession', []);
|
||||||
|
|
||||||
|
return parent::getSession();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isReleasable()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isReleasable', []);
|
||||||
|
|
||||||
|
return parent::isReleasable();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,378 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class ValidationSession extends \Alchemy\Phrasea\Model\Entities\ValidationSession implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'initiator', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'expires', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'basket', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'participants'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'initiator', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'updated', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'expires', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'basket', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\ValidationSession' . "\0" . 'participants'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (ValidationSession $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setInitiator(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setInitiator', [$user]);
|
||||||
|
|
||||||
|
return parent::setInitiator($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getInitiator()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getInitiator', []);
|
||||||
|
|
||||||
|
return parent::getInitiator();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isInitiator(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isInitiator', [$user]);
|
||||||
|
|
||||||
|
return parent::isInitiator($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setUpdated(\DateTime $updated)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdated', [$updated]);
|
||||||
|
|
||||||
|
return parent::setUpdated($updated);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getUpdated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdated', []);
|
||||||
|
|
||||||
|
return parent::getUpdated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setExpires($expires)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setExpires', [$expires]);
|
||||||
|
|
||||||
|
return parent::setExpires($expires);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getExpires()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getExpires', []);
|
||||||
|
|
||||||
|
return parent::getExpires();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setBasket(\Alchemy\Phrasea\Model\Entities\Basket $basket = NULL)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setBasket', [$basket]);
|
||||||
|
|
||||||
|
return parent::setBasket($basket);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getBasket()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getBasket', []);
|
||||||
|
|
||||||
|
return parent::getBasket();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function addParticipant(\Alchemy\Phrasea\Model\Entities\ValidationParticipant $participants)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addParticipant', [$participants]);
|
||||||
|
|
||||||
|
return parent::addParticipant($participants);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function removeParticipant(\Alchemy\Phrasea\Model\Entities\ValidationParticipant $participants)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeParticipant', [$participants]);
|
||||||
|
|
||||||
|
return parent::removeParticipant($participants);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getParticipants()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getParticipants', []);
|
||||||
|
|
||||||
|
return parent::getParticipants();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isFinished()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isFinished', []);
|
||||||
|
|
||||||
|
return parent::isFinished();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getValidationString(\Alchemy\Phrasea\Application $app, \Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValidationString', [$app, $user]);
|
||||||
|
|
||||||
|
return parent::getValidationString($app, $user);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getParticipant(\Alchemy\Phrasea\Model\Entities\User $user)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getParticipant', [$user]);
|
||||||
|
|
||||||
|
return parent::getParticipant($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,301 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class WebhookEvent extends \Alchemy\Phrasea\Model\Entities\WebhookEvent implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'type', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'data', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'processed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'name', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'type', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'data', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'processed', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEvent' . "\0" . 'created'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (WebhookEvent $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setData(array $data)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setData', [$data]);
|
||||||
|
|
||||||
|
return parent::setData($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getData()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getData', []);
|
||||||
|
|
||||||
|
return parent::getData();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setName($name)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
|
||||||
|
|
||||||
|
return parent::setName($name);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getName()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
|
||||||
|
|
||||||
|
return parent::getName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setProcessed($processed)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setProcessed', [$processed]);
|
||||||
|
|
||||||
|
return parent::setProcessed($processed);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isProcessed()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isProcessed', []);
|
||||||
|
|
||||||
|
return parent::isProcessed();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getType()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getType', []);
|
||||||
|
|
||||||
|
return parent::getType();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setType($type)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setType', [$type]);
|
||||||
|
|
||||||
|
return parent::setType($type);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,312 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class WebhookEventDelivery extends \Alchemy\Phrasea\Model\Entities\WebhookEventDelivery implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'application', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'event', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'delivered', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'deliveryTries', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'payload'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'application', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'event', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'delivered', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'deliveryTries', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'created', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventDelivery' . "\0" . 'payload'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (WebhookEventDelivery $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setCreated(\DateTime $created)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreated', [$created]);
|
||||||
|
|
||||||
|
return parent::setCreated($created);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getCreated()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreated', []);
|
||||||
|
|
||||||
|
return parent::getCreated();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return (int) parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setDelivered($delivered)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDelivered', [$delivered]);
|
||||||
|
|
||||||
|
return parent::setDelivered($delivered);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function isDelivered()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isDelivered', []);
|
||||||
|
|
||||||
|
return parent::isDelivered();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getDeliveryTries()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDeliveryTries', []);
|
||||||
|
|
||||||
|
return parent::getDeliveryTries();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setDeliverTries($try)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDeliverTries', [$try]);
|
||||||
|
|
||||||
|
return parent::setDeliverTries($try);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getThirdPartyApplication()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getThirdPartyApplication', []);
|
||||||
|
|
||||||
|
return parent::getThirdPartyApplication();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setThirdPartyApplication(\Alchemy\Phrasea\Model\Entities\ApiApplication $application)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setThirdPartyApplication', [$application]);
|
||||||
|
|
||||||
|
return parent::setThirdPartyApplication($application);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function setWebhookEvent(\Alchemy\Phrasea\Model\Entities\WebhookEvent $event)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setWebhookEvent', [$event]);
|
||||||
|
|
||||||
|
return parent::setWebhookEvent($event);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getWebhookEvent()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getWebhookEvent', []);
|
||||||
|
|
||||||
|
return parent::getWebhookEvent();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getPayload()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPayload', []);
|
||||||
|
|
||||||
|
return parent::getPayload();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,246 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Alchemy\Phrasea\Model\Proxies\__CG__\Alchemy\Phrasea\Model\Entities;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
|
||||||
|
*/
|
||||||
|
class WebhookEventPayload extends \Alchemy\Phrasea\Model\Entities\WebhookEventPayload implements \Doctrine\ORM\Proxy\Proxy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
|
||||||
|
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
|
||||||
|
* initialization process and an array of ordered parameters that were passed to that method.
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setInitializer
|
||||||
|
*/
|
||||||
|
public $__initializer__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__setCloner
|
||||||
|
*/
|
||||||
|
public $__cloner__;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean flag indicating if this object was already initialized
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__isInitialized
|
||||||
|
*/
|
||||||
|
public $__isInitialized__ = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var array properties to be lazy loaded, with keys being the property
|
||||||
|
* names and values being their default values
|
||||||
|
*
|
||||||
|
* @see \Doctrine\Common\Persistence\Proxy::__getLazyProperties
|
||||||
|
*/
|
||||||
|
public static $lazyPropertiesDefaults = [];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param \Closure $initializer
|
||||||
|
* @param \Closure $cloner
|
||||||
|
*/
|
||||||
|
public function __construct($initializer = null, $cloner = null)
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function __sleep()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__) {
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'delivery', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'requestPayload', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'responsePayload', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'statusCode', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'headers'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return ['__isInitialized__', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'id', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'delivery', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'requestPayload', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'responsePayload', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'statusCode', '' . "\0" . 'Alchemy\\Phrasea\\Model\\Entities\\WebhookEventPayload' . "\0" . 'headers'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __wakeup()
|
||||||
|
{
|
||||||
|
if ( ! $this->__isInitialized__) {
|
||||||
|
$this->__initializer__ = function (WebhookEventPayload $proxy) {
|
||||||
|
$proxy->__setInitializer(null);
|
||||||
|
$proxy->__setCloner(null);
|
||||||
|
|
||||||
|
$existingProperties = get_object_vars($proxy);
|
||||||
|
|
||||||
|
foreach ($proxy->__getLazyProperties() as $property => $defaultValue) {
|
||||||
|
if ( ! array_key_exists($property, $existingProperties)) {
|
||||||
|
$proxy->$property = $defaultValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Forces initialization of the proxy
|
||||||
|
*/
|
||||||
|
public function __load()
|
||||||
|
{
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __isInitialized()
|
||||||
|
{
|
||||||
|
return $this->__isInitialized__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitialized($initialized)
|
||||||
|
{
|
||||||
|
$this->__isInitialized__ = $initialized;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setInitializer(\Closure $initializer = null)
|
||||||
|
{
|
||||||
|
$this->__initializer__ = $initializer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __getInitializer()
|
||||||
|
{
|
||||||
|
return $this->__initializer__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
*/
|
||||||
|
public function __setCloner(\Closure $cloner = null)
|
||||||
|
{
|
||||||
|
$this->__cloner__ = $cloner;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific cloning logic
|
||||||
|
*/
|
||||||
|
public function __getCloner()
|
||||||
|
{
|
||||||
|
return $this->__cloner__;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
* @internal generated method: use only when explicitly handling proxy specific loading logic
|
||||||
|
* @static
|
||||||
|
*/
|
||||||
|
public function __getLazyProperties()
|
||||||
|
{
|
||||||
|
return self::$lazyPropertiesDefaults;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getId()
|
||||||
|
{
|
||||||
|
if ($this->__isInitialized__ === false) {
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
|
||||||
|
|
||||||
|
return parent::getId();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getDelivery()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDelivery', []);
|
||||||
|
|
||||||
|
return parent::getDelivery();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getRequestPayload()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRequestPayload', []);
|
||||||
|
|
||||||
|
return parent::getRequestPayload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getResponsePayload()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getResponsePayload', []);
|
||||||
|
|
||||||
|
return parent::getResponsePayload();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getStatusCode()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getStatusCode', []);
|
||||||
|
|
||||||
|
return parent::getStatusCode();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritDoc}
|
||||||
|
*/
|
||||||
|
public function getResponseHeaders()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getResponseHeaders', []);
|
||||||
|
|
||||||
|
return parent::getResponseHeaders();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -53,10 +53,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="height: 25px; position:relative; text-align:left;">
|
<div class="bottom_actions_holder" style="height: 27px; position:relative; text-align:left;">
|
||||||
<table class="bottom actions" style="width:100%; table-layout:fixed;">
|
<table class="bottom actions" style="width:100%; table-layout:fixed;">
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left;text-overflow:ellipsis;overflow:hidden;">
|
<td class="text-stack-wrapper" style="text-align:left;text-overflow:ellipsis;overflow:hidden;">
|
||||||
{% set collectionLogo = collection_logo(record.baseId) %}
|
{% set collectionLogo = collection_logo(record.baseId) %}
|
||||||
{% if collectionLogo is empty %}
|
{% if collectionLogo is empty %}
|
||||||
{{ record.collectionName }}
|
{{ record.collectionName }}
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{# drop down options #}
|
{# drop down options #}
|
||||||
<td style="text-align:right;width:{{l_width}}px;" valign="bottom">
|
<td class="icon-stack-wrapper" style="text-align:right;width:{{l_width}}px;" valign="bottom">
|
||||||
|
|
||||||
{% if settings.rollover_thumbnail == 'caption' %}
|
{% if settings.rollover_thumbnail == 'caption' %}
|
||||||
{% if record_subdef_url(record, 'preview') is not null and has_access_subdef(record, 'preview') %}
|
{% if record_subdef_url(record, 'preview') is not null and has_access_subdef(record, 'preview') %}
|
||||||
|
|||||||
Reference in New Issue
Block a user