Title / Description
Code <?php /** * @subpackage doctrine */ class Doctrine_Template_MultiApplication extends Doctrine_Template { /** * Array of Sortable options * * @var string */ protected $_options = array( ); public function setUp() { $invokerClassName = get_class($this->getInvoker()); $reflectionClass = new ReflectionClass($invokerClassName); if (null === ($relationSetUps = $cache->get($hash))) { $relationSetUps = array(); /* @var $relation Doctrine_Relation_LocalKey */ foreach ($this->getTable()->getRelations() as $relation) { $relationSetUps[] = array( 'method' => $method, 'alias' => $alias, 'options' => $options ); } $cache->set($hash, serialize($relationSetUps)); } else { $relationSetUps = unserialize($relationSetUps); } } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code