Doctrine - difference between bindValue() and setParameter() on prepared statements
database mysql php Symfony · 1 comment · 400 words · Viewed ~1,235 times
This pissed me off and I couldn't figure out what I was doing wrong. So I'm blogging about my ignorance. Imagine you're using Symfony and Doctrine to access a database. You are using prepared statements to prevent any SQL injection problems. There are two main ways of doing this - and they disagree about how positional variables should be specified. Data Retrieval And Manipulation Here's a…
Continue reading →