Skip to content

Laravel 11: solved doctrine and mysql (5) compatibility issues#2

Open
omars44 wants to merge 5 commits intoBloemendaal:laravel-11from
omars44:laravel-11
Open

Laravel 11: solved doctrine and mysql (5) compatibility issues#2
omars44 wants to merge 5 commits intoBloemendaal:laravel-11from
omars44:laravel-11

Conversation

@omars44
Copy link

@omars44 omars44 commented Jul 14, 2024

tested with
laravel/framework: v11.5.0
doctrine/dbal: 4.0.4

Copy link
Owner

@Bloemendaal Bloemendaal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @omars44! 👋

Thank you for submitting this PR! Looks good to me, however, I think you submitted it to the wrong repository. My repository is just a fork to make it work with Laravel 11, the original repository is this one: https://github.com/grimzy/laravel-mysql-spatial

Also, you might also want to update the composer.json to doctrine dbal v4. Currently, it is still at 2.5. :)

I think it's smarter if we submit these PRs separately to the original repository so the owner can check the individual upgrades instead of a PR that updates multiple dependencies.

$this->isColumnAllowed($geometryColumn);

$query->whereRaw("st_distance(`$geometryColumn`, ST_GeomFromText(?, ?, 'axis-order=long-lat')) <= ?", [
$query->whereRaw("st_distance(`$geometryColumn`, ST_GeomFromText(?, ?)) <= ?", [
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@omars44
Copy link
Author

omars44 commented Jul 22, 2024

Hi @Bloemendaal,

Its not by mistake, it's meant to be a combined effort, also to make it accessible to others, so they can directly use your repo, We can collectively submit, that's the idea, but since the source is not active, we at least have something that works.

I put this PR in a hurry need to clean it up.

@omars44 omars44 changed the title Laravel 11: solved doctrine compatibility issues, plus invalid mysql function calls Laravel 11: solved doctrine and mysql (5) compatibility issues Jul 22, 2024
@omars44
Copy link
Author

omars44 commented Jul 22, 2024

I see about the 2 PRs, I'll open it anyway

@stefanrakicfaxi
Copy link

This is valid problem in this moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants