Posts tagged with ‘symfony’

Symfony Filter: Change ForeignKey drop down to Text field

advertisement

symfonyI tried to change the foreignkey drop down to text field in the symfony filter form. But after i change the drop down field to text field, my field name changed to xxx_filter[‘foreign_id’][‘text’] instead of xxx_filter[‘foreign_id’]. And everytime i submit the form it show “SQLSTATE[HY093]: Invalid parameter number: parameter was not defined”.

After few hours of googling, i manage to find the solution for this filter form problem. To solve the problem follow the steps below:-

Continue reading Symfony Filter: Change ForeignKey drop down to Text field »

Symfony doctrine schema relationship sample

advertisement

symfonyThis symfony doctrine schema relationship sample is for my own reference. I think many people out there also facing the same problem as me when writing the doctrine schema relationship. Here are some of the relationship sample that give a very simple sample.

Continue reading Symfony doctrine schema relationship sample »

Symfony: PHP Fatal error: Call to a member function setData()

advertisement

symfonyI just setup a symfony app my new redundancy server but it show “PHP Fatal error: Call to a member function setData()” in my apache error log. What i did is just restore the source code from my subversion server and it shouldn’t have any problem. I suspect there must be something wrong with the app installed in the server.

Continue reading Symfony: PHP Fatal error: Call to a member function setData() »