Connecting the dots...
Thoughts on Web Development, Scalability and Application Architecture
  • Home
  • About Rajat Pandit
  • Contact
Browse: Home / doctrine

doctrine

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

By rp on December 26, 2009

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 [...]

Posted in Web Development | Tagged "multiple one to one relationships", doctrine, Foreign Key, Normalization | 1 Response

Creating utf-8 tables in symfony 1.4 /doctrine 1.2

By rp on December 19, 2009

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 [...]

Posted in Web Development | Tagged doctrine, Symfony, utf-8 | 6 Responses

[Doctrine_Parser_Exception] Fail-some error message!

[Doctrine_Parser_Exception] Fail-some error message!

By rp on August 23, 2009

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: [...]

Posted in Web Development | Tagged doctrine, jwage, orm, php, Symfony | 1 Response

Symfony development process

By rp on July 11, 2009

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 a new project

$ symfony generate:project brp
$ [...]

Posted in Web Development | Tagged build process, development, doctrine, process, svn, Symfony | Leave a response

Search

Sponsored Links

Dreamhost Rewards

Symfony Experts

Categories

  • Getting Things Done (RSS) (3)
  • SEO (RSS) (1)
  • Web Development (RSS) (86)

Recent Comments

  • zakaria on Skype audio playback and capture problem on ubuntu 8.10
  • Allen on sfDoctrineGuardPlugin: Signup, Validation and Profile
  • Susan on Creating utf-8 tables in symfony 1.4 /doctrine 1.2
  • Tynisha Cooper on FOWA 2008
  • Affordable Web Development on Making footer stick to the bottom of the page

Tags

accessiblity Add new tag apache 2 array bot build process Clean CSS dependencies development doctrine email gmail googl hack irc Javascript JeOS leopard linux mac macfusion mail namespaced OSX pear perl php propel protocol quit now search SEO simplexml ssh sshfs svn Symfony synchronization Ubuntu upgrade validation variants Yahoo! yahoo search

Copyright © 2010 Connecting the dots....