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