Exemple #1
0
 /**
  * Get a local column
  *
  * @param  string $name
  *
  * @return Column
  * @throws Exception\Table
  */
 public function getLocalColumn($name)
 {
     $alias = $this->normalizeName($name);
     if ($this->localColumns->offsetExists($alias) === false) {
         throw Exception\Relation::localColumnDoesNotExists($alias, $this->localColumns);
     }
     return $this->localColumns->offsetGet($alias);
 }