Ejemplo n.º 1
0
Archivo: Table.php Proyecto: 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;
 }
Ejemplo n.º 2
0
Archivo: ToSql.php Proyecto: 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();
 }