public static function hasHasMany($attr) 
    {
        $cls = get_called_class();
        return array_key_exists($cls,  self::$_has_many) &&
               array_key_exists($attr, self::$_has_many[$cls]);
    }
public static function hasHasMany($attr) 
    {
        $cls = get_called_class();
        return array_key_exists($cls,  self::$_has_many) &&
               array_key_exists($attr, self::$_has_many[$cls]);
    }
public static function hasHasMany ( $ attr ) { $ cls = get_called_class ( ) ; return array_key_exists ( $ cls , self :: $ _has_many ) && array_key_exists ( $ attr , self :: $ _has_many [ $ cls ] ) ; }
Check if there is a has many association

@param string $attr attribute to check

@return boolean
Check if there is a has many association