If using Doctrine you have probably come across the error message “SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘column_id’ cannot be null” at least once. This error occurs on doctrine persist when using a entity that both has mappings for a ordinary field and an Doctrine relation field (many-to-one, one-to-many) with the same name.Read More

I don’t know how many times i have read the “study guide” but every time i do it, i come across something new that makes me want to read more about it that often results in more knowledge about php in general. Even if you are not planning to take the exam i can really recommend everyone to read the “study guide”.
One more thing that the “study guide” contains is a training version of the certification exam. But a problem i noticed with this was that i started to learn the questions by their designation “1.a, 2.b” and so on. To over come this i created a simple javascript questionnaire to randomize the questions and answers to make it impossible to learn the designations and force me to learn the actual answer.

Unfortunately i can only share the javascript questionnaire and not the content because of copyright permission, i mailed zend to ask them if i could share this but wasn’t allowed.

I will update this post later with the link to javascript questionnaire on github for download

I have now purchased tickets to ConFoo and travel tickets from Sweden to Canada. The ConFoo conference starts February 29 – March 2, 2012. This will be my first IT conference and i can’t wait to travel there and listen to the experts talk about their field of work and what they recommend and how they solve different problems.

Never been good with “Design Patterns” since it sounds like something made up by IKEA and hence it would be lacking robustness, wont stand by itself and lack several important parts. Anyway since I like to mix my food with showing of my coding brilliance I, during lunch, started up a conversation about a specific code design of mine. I pointed out my use of Factory Pattern and he didn’t really understand me. I tried again by drawing pictures on a napkin but that didn’t help. I started to realize that we didn’t have the same point of view on the concept and he pointed me in a direction of literature and then I got stuck by pure interest. In order to get out of this I will hereby start document my progress.

I’m currently working in a project where we are using Zend Framework. And we wanted a translation function that we could call from any place in our code after the Bootstrap, Zend_Translate had been initialized.