Exemplo n.º 1
0
 /**
  * Create instances of all attributes that are defined for this MetaModel instance.
  * This is called internally by the first query of MetaModel::getAttributes().
  *
  * @return void
  */
 protected function createAttributes()
 {
     $arrAttributes = MetaModelAttributeFactory::getAttributesFor($this);
     foreach ($arrAttributes as $objAttribute) {
         if ($this->hasAttribute($objAttribute->getColName())) {
             continue;
         }
         $this->addAttribute($objAttribute);
     }
 }