Skip to content

Doctrine ArrayCollection refuses to update after insert

I’m trying to save a collection of files. When I save a collection, it goes into the DB without a hitch. Same with files. But when I add a collection and a new file in the same request (like here in the upload function). Whenever I then ask doctrine to get me the files in the collection (in this case

How to insert data using a checkbox inside a while loop php

I want to add the value of a checkbox to the specific row in the database. It adds the value to the wrong rows each time. I tried adding a hidden input with a different value. Answer perhaps this might help you understand what I was implying by creating and binding the prepared statements outside the loop. Wi…

phpdesktop laravel blank white page

i need to make a website available offline, right off the bat my idea is to create a desktop app that would sync the database when connected to the server, then i came across phpdesktop, just tried …

Get the value of a string inside a function

so there’s this function: That I would like to get the value from. Let’s say, is it ‘delivery’ or ‘pickup’? Then, I need to know if the product this whole code refers to is set as a ‘pickup’ or ‘delivery’ – each product is assigned to only one …