You are here

private function ProxyGenerator::generateLazyPropertiesDefaults in Plug 7

Generates the array representation of lazy loaded public properties and their default values.

Parameters

\Doctrine\Common\Persistence\Mapping\ClassMetadata $class:

Return value

string

File

lib/doctrine/common/lib/Doctrine/Common/Proxy/ProxyGenerator.php, line 357

Class

ProxyGenerator
This factory is used to generate proxy classes. It builds proxies from given parameters, a template and class metadata.

Namespace

Doctrine\Common\Proxy

Code

private function generateLazyPropertiesDefaults(ClassMetadata $class) {
  $lazyPublicProperties = $this
    ->getLazyLoadedPublicProperties($class);
  $values = array();
  foreach ($lazyPublicProperties as $key => $value) {
    $values[] = var_export($key, true) . ' => ' . var_export($value, true);
  }
  return implode(', ', $values);
}