Download the PHP package aschaeffer/sonata-republicandate-field-bundle without Composer
On this page you can find all versions of the php package aschaeffer/sonata-republicandate-field-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aschaeffer/sonata-republicandate-field-bundle
More information about aschaeffer/sonata-republicandate-field-bundle
Files in aschaeffer/sonata-republicandate-field-bundle
Package sonata-republicandate-field-bundle
Short Description Symfony Sonata Republican Date Field Bundle
License MIT
Homepage https://github.com/arnaudschaeffer/SonataRepublicanDateFieldBundle
Informations about the package sonata-republicandate-field-bundle
Sonata Republicandate Field Bundle
Sonata Republicandate Field Bundle allow you to define text field which will store date in french republican format
Installation
Install the package with:
If you're not using Symfony Flex, you'll also need to enable the Aschaeffer\SonataRepublicandateFieldBundle\AschaefferSonataRepublicandateFieldBundle
in your AppKernel.php
file.
Usage
In your entity, add RepublicandateField
annotation on a string property that will store the string. Set which property of the entity stores the corresponding datetime
By doing this, on a Sonata Admin view, if you choose a gregorian date that exists in the republican calendar, the republican date string will be persisted in the database. On the other hand, if no gregorian date is set AND a republican date is defined, then the datetime will be persisted in the gregorian field.
All versions of sonata-republicandate-field-bundle with dependencies
ext-calendar Version *