Save SQL array using Symfony2 and Doctrine

0

I have an array type column like this in an entity:

@ORM\Column(name="acompanantes", type="array")

public fuction setAcompanantes(array $acompanantes)

{

$this->acompanantes = $acompanantes;
return $this;

}

public fuction getAcompanantes()
{
return array($this->acompanantes);
}

The result in the mysql table is of type tinyText with comment DC2Type: array, I understand that this is fine but how could I insert the data using form of symfony2.8? Could you help me?

    
asked by Ramón Devesa 06.10.2017 в 15:11
source

0 answers