Phactory\Sql\Association\ManyToMany::_guessFromJoinColumn PHP Method

_guessFromJoinColumn() protected method

protected _guessFromJoinColumn ( )
    protected function _guessFromJoinColumn()
    {
        if (null === $this->_from_join_column) {
            $guess = $this->_from_table->getSingularName() . '_id';
            if ($this->_join_table->hasColumn($guess)) {
                $this->setFromJoinColumn($guess);
            } else {
                throw new \Exception("Unable to guess from_join_column and none specified");
            }
        }
    }