for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Neimheadh\SonataAnnotationBundle\Annotation\Sonata;
use Attribute;
use Neimheadh\SonataAnnotationBundle\Annotation\AssociationFieldInterface;
use Neimheadh\SonataAnnotationBundle\Annotation\AssociationFieldTrait;
/**
* Export association field annotation.
*
* Allow you to configure the export for the annotated field having an
* association field..
* @Annotation
* @Target({"PROPERTY"})
* @author Marko Kunic <[email protected]>
* @author Mathieu Wambre <[email protected]>
*/
#[Attribute(Attribute::TARGET_PROPERTY)]
final class ExportAssociationField extends ExportField implements
AssociationFieldInterface
{
use AssociationFieldTrait;
* {@inheritDoc}
* @param string|null $field Field name.
public function __construct(
$label = null,
string $field = null
) {
$this->field = $field;
parent::__construct($label);
}