示例#1
0
 /**
  * @return array
  */
 public function getCacheTags($tags = array())
 {
     $tags = is_array($tags) ? $tags : array();
     $tags = parent::getCacheTags($tags);
     $tags["class_" . $this->getO_classId()] = "class_" . $this->getO_classId();
     foreach ($this->getO_class()->getFieldDefinitions() as $name => $def) {
         // no need to add lazy-loading fields to the cache tags
         if (!method_exists($def, "getLazyLoading") or !$def->getLazyLoading()) {
             $tags = $def->getCacheTags($this->getValueForFieldName($name), $this, $tags);
         }
     }
     return $tags;
 }