/** * @param ForeignKey $foreignKey */ public function addForeignKey(ForeignKey $foreignKey) { $foreignKey->setParentTable($this); $this->foreignKeys[$foreignKey->getName()] = $foreignKey; }