tchapi / davis

🗓 A simple, fully translatable admin interface for sabre/dav based on Symfony 5 and Bootstrap 5, initially inspired by Baïkal.

Home Page:https://github.com/users/tchapi/projects/1/views/1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Docker] doctrine:migrations:migrate - syntax error, unexpected variable "$this"

JanJastrow opened this issue · comments

Hi, I tried to run this project locally but keep running into this error:

~/Git/GitHub/davis/docker/ docker exec -it davis sh -c "APP_ENV=prod bin/console doctrine:migrations:migrate --no-interaction"

21:10:38 CRITICAL  [console] Error thrown while running command "doctrine:migrations:migrate --no-interaction". Message: "syntax error, unexpected variable "$this" ["exception" => ParseError { …},"command" => "doctrine:migrations:migrate --no-interaction","message" => "syntax error, unexpected variable "$this""]

In Version20230209142217.php line 38:

  syntax error, unexpected variable "$this"


doctrine:migrations:migrate [--write-sql [WRITE-SQL]] [--dry-run] [--query-time] [--allow-no-migration] [--all-or-nothing [ALL-OR-NOTHING]] [--configuration CONFIGURATION] [--em EM] [--conn CONN] [--] [<version>]

Steps to reproduce:

  • git clone
  • cd docker
  • docker compose up -d
  • %wait%
  • [+] Running 4/4
  • Run docker exec -it davis sh -c "APP_ENV=prod bin/console doctrine:migrations:migrate --no-interaction"

I also tried it with the PosgreSQL version (docker compose -f docker-compose-postgresql.yml up -d), same error.
The webinterface just returns error 500.


Testing on macOS 12.6.3
Docker version 20.10.22, build 3a2c30b

Hi @JanJastrow and thanks for the detailed issue.

You are perfectly right, it is a bug introduced in #86. I'm preparing a fix right now

Fixed in eed5b48 👌🏼