Download the PHP package grzegorz-jamroz/sf-doctrine-api-bundle without Composer
On this page you can find all versions of the php package grzegorz-jamroz/sf-doctrine-api-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grzegorz-jamroz/sf-doctrine-api-bundle
More information about grzegorz-jamroz/sf-doctrine-api-bundle
Files in grzegorz-jamroz/sf-doctrine-api-bundle
Package sf-doctrine-api-bundle
Short Description Bundle provides basic features for Symfony Doctrine Api
License
Informations about the package sf-doctrine-api-bundle
Ifrost Doctrine Api Bundle for Symfony
Bundle provides basic features for Symfony Doctrine Api
Installation
-
Update routing configuration in your project:
- Configure Doctrine to store UUIDs as binary strings
Note: It is possible to configure Doctrine to store UUIDs in different way - you can read about it here. Please note that bundle will work only with UUIDs stored as binary types.
- Create Entity which implements EntityInterface and in this case annotate properties by setting the
@Column
type touuid_binary
, and define custom generator ofRamsey\Uuid\Doctrine\UuidV7Generator
.
Exmple:
-
Create your controller:
- Now you can debug your routes. Run command:
you should get output:
More custom usage
If you decided that you want to change routing configuration for some specific route just add Route
attribute with new parameters. For example:
now output from php bin/console debug:router
will be:
It is possible do disable some actions at all. In this case you can use excludedActions
metadata.
now output from php bin/console debug:router
will be:
Configuration
Default config
You can add config/packages/ifrost_doctrine_api.yaml
in your project to enable/disable some features if not necessary
You can enable default cache adapter Symfony\Component\Cache\Adapter\FilesystemAdapter
(optional)
All versions of sf-doctrine-api-bundle with dependencies
grzegorz-jamroz/sf-api-foundation Version ^6.2
ramsey/uuid-doctrine Version ^2.0
grzegorz-jamroz/sf-api-bundle Version ^6.2.2
doctrine/doctrine-bundle Version ^2.11
doctrine/orm Version ^2.17