Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何制作 Symfony 2 表单以便在数据库中序列化特定字段?
客户端将为字段发送一个数组,该数组foo位于VARCHAR数据库中。我想要foo通过serialize(),但我不知道该怎么做,因为我所做的就是:
foo
VARCHAR
serialize()
$form->bind($request);
您应该使用数据转换器