MetaModels\Attribute\IAttribute::getColName PHP Method

getColName() public method

Queries the attribute for it's column name within it's MetaModel.
public getColName ( ) : string
return string the attributes column name.
    public function getColName();

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getMatchingIds()
 {
     if ($this->mode == self::MODE_SINGLE) {
         return $this->runSimpleQuery('item_id', 'tl_metamodel_geolocation', 'latitude', 'longitude', array('att_id=?' => $this->singleAttribute->get('id')));
     } else {
         return $this->runSimpleQuery('id', $this->getMetaModelTableName(), $this->latitudeAttribute->getColName(), $this->longitudeAttribute->getColName(), null);
     }
 }
All Usage Examples Of MetaModels\Attribute\IAttribute::getColName