Esempio n. 1
0
File: Table.php Progetto: chh/sirel
 /**
  * Predefine an Attribute with the given Instance
  *
  * @param  Attribute $attribute
  * @return Table
  */
 function addAttribute(Attribute $attribute)
 {
     $attribute->setRelation($this);
     $this->attributes[$attribute->getName()] = $attribute;
     return $this;
 }
Esempio n. 2
0
File: ToSql.php Progetto: chh/sirel
 /**
  * Returns the Attribute's fully qualified name
  *
  * @param  Attribute $attribute
  * @return string
  */
 protected function visitSirelAttributeAttribute(Attribute $attribute)
 {
     return $this->visit($attribute->getRelation()) . "." . $attribute->getName();
 }