Connecting the dots…

Thoughts on Web Development, Scalability and Application Architecture

Tag: doctrine

Ordering List of Items – Doctrine / Symfony 1.4

Recently I had a requirement to write an interface that allows users to change order of elements and move them up and down. I would an interesting cookbook entry on symfony‘s website but it used propel as an ORM. Since my project uses doctrine, I had to implement the same in doctrine. Documenting this here [...]

Doctrine: Multiple One-To-One Relation to same table

I am currently using sfGuardUser table from the sfDoctrineGuardPlugin to link up to a messages table which stores the user id of sender and receiver. To ensure that the data schema is properly normalised I need to make sure that both the user id are actually foreign keys to the sfGuardUser table. Here are the [...]

Creating utf-8 tables in symfony 1.4 /doctrine 1.2

Recently I had an issue on one of my work websites where the database schema was setup in Latin-1 encoding, this was fine till the encoding of the website was also set to iso-8859-1 and nothing fancy was going on. However later in the last few months, I had been doing some development which required [...]

[Doctrine_Parser_Exception] Fail-some error message!

If your precious evening hacking time has been wasted by this useless error message: rp@devbox:trunk$ php symfony –trace doctrine:build-all-reload –no-confirmation >> doctrine dropping databases >> doctrine Successfully dropped database f…octrine" named "secret_project" >> doctrine creating databases >> doctrine Successfully created database f…octrine" named "secret_project" >> doctrine generating model classes [Doctrine_Parser_Exception] Unable to parse string: Unable [...]

Symfony development process

My development process involves using doctrine and svn. Documenting my development steps to make sure I can put this is some sort of build script in future. Creating svn directories svn mkdir -m "create default directories" http://svn.clients.rajatpandit.com/project-name/trunk http://svn.clients.rajatpandit.com/project-name/tags http://svn.clients.rajatpandit.com/project-name/branches Checkout these directories locally: svn co http://svn.clients.rajatpandit.com/project-name/ . Move to the trunk directory cd trunk Creating [...]