public function exceedsLimit()
    {
        if ($this->limit === null) {
            return false;
        }

        return $this->relatedValues->count() >= $this->limit;
    }
public function exceedsLimit()
    {
        if ($this->limit === null) {
            return false;
        }

        return $this->relatedValues->count() >= $this->limit;
    }
public function exceedsLimit ( ) { if ( $ this -> limit === null ) { return false ; } return $ this -> relatedValues -> count ( ) >= $ this -> limit ; }
Checks if count of relations to be created exceeds limit.

@return int
Checks if count of relations to be created exceeds limit .