-
-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
* Your Page is almost ready: | ||
1. Generate a migration for Sonata Page Database <info>php 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>php 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> |