Schema/Schema.php
public function getGroupByName($name)
    {
        if (!array_key_exists($name, $this->groups)) {
            throw new \InvalidArgumentException(sprintf('Can\'t find "%s" group.', $name));
        }

        return $this->groups[$name];
    }
public function getGroupByName($name)
    {
        if (!array_key_exists($name, $this->groups)) {
            throw new \InvalidArgumentException(sprintf('Can\'t find "%s" group.', $name));
        }

        return $this->groups[$name];
    }
public function getGroupByName ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> groups ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Can\'t find "%s" group.' , $ name ) ) ; } return $ this -> groups [ $ name ] ; }
Returns a group by his name.

@param string $name

@throws \InvalidArgumentException

@return Group
Returns a group by his name .