Skip over navigation
Documentation
You are currently viewing documentation for version 3.0 which is not a long-term support release. The latest long-term support release is version 2.6

@ConfigField

This annotation is used to configure default values for properties of configurable entity classes.

Options

defaultValues

Configures default values for particular config options on a per property basis:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
// ...
use Oro\Bundle\EntityConfigBundle\Metadata\Annotation\ConfigField;

class User
{
    /**
     * @ConfigField(
     *      defaultValues={
     *          "dataaudit"={
     *              "auditable"=true
     *          }
     *      }
     * )
     */
    private $username;
}

This example sets the auditable option from the dataaudit scope to true for the username property in the User class.

Browse maintained versions:3.01.122.02.32.6

You will be redirected to [title]. Would you like to continue?

Yes No
sso for www.magecore.comsso for oroinc.desso for oroinc.fr
Back to top