private static function _checkAndReturnMany($method, $value) 
    {
        $cls = get_called_class();
        if (array_key_exists($cls, self::$_has_many)
            && array_key_exists($method, self::$_has_many[$cls])
        ) {
            return self::_resolveHasMany($method, $value);
        }
    }
private static function _checkAndReturnMany($method, $value) 
    {
        $cls = get_called_class();
        if (array_key_exists($cls, self::$_has_many)
            && array_key_exists($method, self::$_has_many[$cls])
        ) {
            return self::_resolveHasMany($method, $value);
        }
    }
private static function _checkAndReturnMany ( $ method , $ value ) { $ cls = get_called_class ( ) ; if ( array_key_exists ( $ cls , self :: $ _has_many ) && array_key_exists ( $ method , self :: $ _has_many [ $ cls ] ) ) { return self :: _resolveHasMany ( $ method , $ value ) ; } }
Check a has many association and returns it resolved, if exists.

@param string $method name
@param mixed  $value  of this object primary key

@return has many collection, if any
Check a has many association and returns it resolved if exists .