public function get($name = null)
    {
        if (!$name) {
            return $this->_conventions;
        }
        if (!isset($this->_conventions[$name])) {
            throw new ORMException("Convention for `'{$name}'` doesn't exists.");
        }
        return $this->_conventions[$name];
    }
public function get($name = null)
    {
        if (!$name) {
            return $this->_conventions;
        }
        if (!isset($this->_conventions[$name])) {
            throw new ORMException("Convention for `'{$name}'` doesn't exists.");
        }
        return $this->_conventions[$name];
    }
public function get ( $ name = null ) { if ( ! $ name ) { return $ this -> _conventions ; } if ( ! isset ( $ this -> _conventions [ $ name ] ) ) { throw new ORMException ( "Convention for `'{$name}'` doesn't exists." ) ; } return $ this -> _conventions [ $ name ] ; }
Gets a specific or all convention rules.

@param  string    $name The name of the convention or `null` to get all.
@return mixed           The closure or an array of closures.
@throws Exception       Throws a `ORMException` if no rule has been found.
Gets a specific or all convention rules .