You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.
Daniel Rotter edited this page Jul 17, 2013
·
1 revision
#Bundles
Bundles can be create with the delivered command from Symfony:
php app/console generate:bundle
Then create a composer.json and publish the package on packagist. Afterwards you can add it as a dependency to your sulu-composer.json and install the new requirement:
composer update
Now you can work in the repository in the vendor-directory.
#Doctrine
Entities can be generated with the delivered command from Symfony:
php app/console doctrine:generate:entity
Choose yml for configuration and add all the fields from the database table. Afterwards you have to add all the relationships to the yml-file, as described in in the doctrine documentation.
If you have a many-to-many relationship with an additional value you have to resolve it to many-to-one relationships, and use the associationKey-Attribute.