What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

anyone has seen this? ```Structure of database was modified in datasource "zed": 207 added tables Er

UK7TM6CQJ
UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

anyone has seen this? ```
Structure of database was modified in datasource "zed": 207 added tables
Error - Exception: Call to a member function getName() on null
in /data/shop/development/current/vendor/propel/propel/src/Propel/Generator/Platform/DefaultPlatform.php (449)

Command: vendor/bin/console propel:diff

Trace:

0 /data/shop/development/current/vendor/propel/propel/src/Propel/Generator/Platform/DefaultPlatform.php(556): Propel\Generator\Platform\DefaultPlatform->getColumnListDDL(Array)

1 /data/shop/development/current/vendor/propel/propel/src/Propel/Generator/Platform/DefaultPlatform.php(534): Propel\Generator\Platform\DefaultPlatform->getAddIndexDDL(Object(Propel\Generator\Model\Index))

2 /data/shop/development/current/vendor/propel/propel/src/Propel/Generator/Platform/DefaultPlatform.php(729): Propel\Generator\Platform\DefaultPlatform->getAddIndicesDDL(Object(Propel\Generator\Model\Table))

3 /data/shop/development/current/vendor/propel/propel/src/Propel/Generator/Command/MigrationDiffCommand.php(208): Propel\Generator\Platform\DefaultPlatform->getModifyDatabaseDDL(Object(Propel\Generator\Model\Diff\DatabaseDiff))

4 /data/shop/development/current/vendor/spryker/propel-orm/src/Spryker/Zed/PropelOrm/Communication/Generator/Command/MigrationDiffCommand.php(29): Propel\Generator\Command\MigrationDiffCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

5 /data/shop/development/current/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Command/Runner/PropelCommandRunner.php(63): Spryker\Zed\PropelOrm\Communication\Generator\Command\MigrationDiffCommand->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

6 /data/shop/development/current/vendor/spryker/propel/src/Spryker/Zed/Propel/Communication/Console/DiffConsole.php(51): Spryker\Zed\Propel\Communication\Command\Runner\PropelCommandRunner->runCommand(Object(Spryker\Zed\PropelOrm\Communication\Generator\Command\MigrationDiffCommand), Object(Symfony\Component\Console\Input\InputDefinition), Object(Symfony\Component\Console\Output\ConsoleOutput))

7 /data/shop/development/current/vendor/symfony/console/Command/Command.php(255): Spryker\Zed\Propel\Communication\Console\DiffConsole->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

8 /data/shop/development/current/vendor/symfony/console/Application.php(987): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

9 /data/shop/development/current/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(Spryker\Zed\Propel\Communication\Console\DiffConsole), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

10 /data/shop/development/current/vendor/spryker/console/src/Spryker/Zed/Console/Communication/ConsoleBootstrap.php(153): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

11 /data/shop/development/current/vendor/symfony/console/Application.php(148): Spryker\Zed\Console\Communication\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

12 /data/shop/development/current/vendor/spryker/console/bin/console(21): Symfony\Component\Console\Application->run()

```

Comments

  • UKHD8KTMF
    UKHD8KTMF Posts: 393 πŸ§‘πŸ»β€πŸš€ - Cadet

    is there something missing in the propel schema file

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hi Lucian, this usually happens when you have an invalid schema file some where, maybe even an empty one. I would suggest to either check the one-s you’ve recently added or if you have no idea where that might come from, try to add a breakpoint to DefaultPlatform.php (449) and see which table is causing that

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    (I even still have a breakpoint there, so happened to me πŸ™‚ )

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    deleted everything from src/Orm/Propel/<store>/

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    and still happens

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    got rid of it somehow

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 πŸ§‘πŸ»β€πŸš€ - Cadet

    thank you

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    it’s not about deleting auto-generated schemas by propel, it’s about checking project/module-specific one-s you have in Persistence