PHP code example of gregosphatos / doctrine-filters-bundle

1. Go to this page and download the library: Download gregosphatos/doctrine-filters-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

gregosphatos / doctrine-filters-bundle example snippets


use GreGosPhaTos\DoctrineFiltersBundle\Doctrine\Annotation\RecordState;

/**
 * Entity.
 *
 * @RecordState(stateFieldName="state", activeValue="active")
 */
class MyEntity
{
    /**
     * Record state 
     *  possible values : active, inactive
     */
    private $state;
}