mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-03-24 00:32:17 +01:00
14 lines
1.1 KiB
Plaintext
14 lines
1.1 KiB
Plaintext
* Your Page is almost ready:
|
|
1. Generate a migration for Sonata Page Database <info>bin/console doctrine:migrations:diff</info>
|
|
<comment>
|
|
If you use Doctrine Attribute Reference, You must change Sonata Entities generated in Entity folder.
|
|
You can check more details at https://www.doctrine-project.org/projects/doctrine-orm/en/current/reference/attributes-reference.html
|
|
|
|
You can also use Rector to refactor, check more details at https://getrector.org/blog/how-to-upgrade-annotations-to-attributes
|
|
</comment>
|
|
2. Apply the migration generated <info>bin/console doctrine:migrations:migrate --no-interaction</info>
|
|
3. Create your first site: <info>bin/console sonata:page:create-site --enabled --name=localhost --locale=- --host=localhost --relativePath=- --enabledFrom=now --enabledTo=- --default</info>
|
|
<comment>After you generate your site, You will see few commands to execute to have your Site ready.</comment>
|
|
|
|
* <fg=blue>Read</> the documentation at <comment>https://docs.sonata-project.org/projects/SonataPageBundle/en/4.x/</comment>
|