Skip to content

symfony entities many to many, i add new fields

I try this code: Symfony: ManyToMany table extra columns This new field is because the user have a diferent role for diferent events. In the fist time i can add add the new fields on table user.evento, but now i cant. And i dont find the problem. I get this fail: An exception occurred while executing ‘I…

Strange thing with PHP token confirmation

Before submitting the form, I check if the token matches like this: HTML: And for some reason, else is always triggered, although in theory the check should occur when sending data. What could be the problem? UPD.And besides, the error text is constantly visible at the top of the page, although I display all …

Join two associative arrays in PHP

I have two associative arrays, one is called $events and one is called $wikipedia. I want an efficient way to join “extract” and “thumbnail” from $wikipedia to $events where “name” in $events matches “title” in $wikipedia. Original $events $wikipedia Modified $e…