<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>devFactor - Developer's Blog</title><description>my piece of (work)space</description><managingEditor>noreply@blogger.com (devFactor)</managingEditor><pubDate>Tue, 24 Sep 2024 17:50:56 -0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">12</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://devfactor.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><copyright>Copyright (c) 2009 Drako</copyright><itunes:keywords>PHP,Symfony,mySql,web,development,eclipse,html,css</itunes:keywords><itunes:summary>PHP and Symfony related stuff.</itunes:summary><itunes:subtitle>PHP and Symfony related stuff.</itunes:subtitle><itunes:author>drako</itunes:author><itunes:owner><itunes:email>noreply@blogger.com</itunes:email><itunes:name>drako</itunes:name></itunes:owner><item><title>Doctrine 1.2  inheritance bug</title><link>http://devfactor.blogspot.com/2010/12/doctrine-12-inheritance-bug.html</link><category>bug</category><category>Diem</category><category>Doctrine</category><category>Symfony</category><pubDate>Wed, 15 Dec 2010 14:41:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-2892131113315840762</guid><description>While working on news and articles system for my project I have encountered an annoying problem with doctrine migrate task. It was giving me a bunch of errors related to indexes in the database tables and wasn't performing migrations correctly. In the beginning I thought it is me doing something wrong but after several approaches I've came to conclusion that this time I'm not a reason.


&lt;!--
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>Making a business portal - case study startup</title><link>http://devfactor.blogspot.com/2010/11/making-business-portal-case-study.html</link><category>case study</category><category>Diem</category><category>MVC</category><category>php</category><category>portal</category><category>Symfony</category><pubDate>Mon, 22 Nov 2010 12:06:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-1622092863304921124</guid><description>I'm currently working on business portal which is to include some community building features. As I'm building it from cratch I thought I could make a nice case study out of it. Fortunately I'm not in a hurry with this one so I can spend some time to write about it :)

&lt;!--
google_ad_client = "pub-3189176622427317";
/* 468x60,devfactor */
google_ad_slot = "0058274055";
google_ad_width = 468;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>Tag Cloud plugin for Diem</title><link>http://devfactor.blogspot.com/2010/09/tag-cloud-plugin-for-diem.html</link><category>Diem</category><category>php</category><category>plugin</category><category>Symfony</category><pubDate>Tue, 28 Sep 2010 08:14:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-528324108367088819</guid><description>So I have this Diem based project I'm working on for some time now and at some point I decided I need to display a tag cloud on the page. I thought it will be a trivial thing to add but unfortunately I was wrong. I've searched the symfony plugins database and found nothing, Diem itself doesn't have anything like that as well. So I was tring to find anything interesting outside the symfony </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>I'm on Twitter</title><link>http://devfactor.blogspot.com/2010/09/im-on-twitter.html</link><category>php</category><category>Symfony</category><category>twitter</category><pubDate>Tue, 28 Sep 2010 02:18:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-5550255179108056676</guid><description>Yeah, after years of resisting it, I've set up a Twitter account. You can follow me @devFactor. I'll tweet mostly on symfony and web development topics.</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>Separating Model from Data Access Layer</title><link>http://devfactor.blogspot.com/2010/09/symfony-and-mvc-separating-model-from.html</link><category>Data Access Layer</category><category>MVC</category><category>ORM</category><category>php</category><category>Symfony</category><pubDate>Thu, 2 Sep 2010 03:42:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-6561818935828747792</guid><description>At last I found some time to provide you with an example of design I wrote about in previous posts. For the sake of easy understanding I'll keep the example simple but of course in reality it'd be much more complex. This example is based on a real implementation.

So lets say we have two tables: user and user_detail looking like that: 
User:
  columns:
    id:
    first_name: 
    last_name:
    </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">7</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>Symfony and MVC  - follow up</title><link>http://devfactor.blogspot.com/2010/08/symfony-and-mvc-follow-up.html</link><category>Data Access Layer</category><category>MVC</category><category>ORM</category><category>php</category><category>Symfony</category><pubDate>Wed, 25 Aug 2010 08:45:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-5498478191696229530</guid><description>My previous post caused a little bit of confusion so I decided to write this short follow up before I find some more time to provide you with an example explaining my approach. In this post I'll clarify some of my previous statements about separating your models from ORM generated classes.

First off - my approach is not dedicated for everyone. I'm a pragmatist and I follow the rule "don't do </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>Symfony and MVC - a little rant about</title><link>http://devfactor.blogspot.com/2010/08/symfony-and-mvc-little-rant-about.html</link><category>Data Access Layer</category><category>MVC</category><category>ORM</category><category>php</category><category>Symfony</category><pubDate>Sat, 21 Aug 2010 04:25:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-7476406132578856151</guid><description>So symfony is a MVC based framework. True. It provides all you need to build MVC applications. True. Symfony users build MVC applications. Unfortunately - usually not true. And I think it's mostly symfony's team fault. I'll explain it later in this post.

MVC stands for Model-View-Controller. Those are three layers that code consists of. But there is one more layer, which is not really a part of </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">9</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>The Law of Demeter</title><link>http://devfactor.blogspot.com/2009/11/law-of-demeter.html</link><category>php</category><category>profile</category><category>sfGuardUser</category><category>Symfony</category><category>tip</category><pubDate>Tue, 10 Nov 2009 10:45:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-9164931744076210754</guid><description>Today I've read a very interesting blog post. What brought my attention is thing which bothered me for quite a long time in the past, I mean this:

Most of the Symfony projects I’ve worked on are rife with lines of code like this (in the actions):

$this-&gt;getUser()-&gt;getGuardUser()-&gt;getProfile()-&gt;getEmail()

To conform to the above ideals (The Law Of Demeter) the code should be re-written as:

$</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>Sympal installation fix</title><link>http://devfactor.blogspot.com/2009/11/sympal-installation-fix.html</link><category>bug</category><category>fix</category><category>installation</category><category>MySql</category><category>php</category><category>plugin</category><category>Symfony</category><category>Sympal</category><pubDate>Sat, 7 Nov 2009 04:51:00 -0800</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-7427357497703790345</guid><description>Recently I was trying to install the Sympal plugin for Symfony. Everything was fine until I tried to run the application. Symfony has displayed an 404 error unfortunately telling me nothing useful:

Unable to find the Component : Content
Table : content
object with the following parameters "array ()").

I've cleaned the project up and step by step installed the plugin again. And... I saw the same</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>Securing the application</title><link>http://devfactor.blogspot.com/2009/10/securing-application.html</link><category>credentials</category><category>filter</category><category>php</category><category>security</category><category>Symfony</category><pubDate>Tue, 20 Oct 2009 08:23:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-4969187189555662905</guid><description>Lets say we have two different applications which are part of bigger system so they have the same set of users. If it is some closed system you will probably want to restrict some groups of users from accessing one o the applications (ie. client didn't buy that feature so his users shouldn't use it). If you wanted to use the standard credentials system implemented in the symfony, you'd have to </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>Double submit issue</title><link>http://devfactor.blogspot.com/2009/10/double-submit-issue.html</link><category>AJAX</category><category>double submit</category><category>ExtJS</category><category>forms</category><category>php</category><category>Symfony</category><pubDate>Wed, 14 Oct 2009 03:36:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-8848014832223431704</guid><description>I know I know, it had been discussed to death before. There are some solutions but in our application the new problem arised. The main problem are not impatient users cos our forms are secured against double-clicks. The thing is: we're using ExtJS and thus our application awaits for callbacks to display appropiate message to the user. But as some our users use mobile internet the connection </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (drako)</author></item><item><title>First post ;)</title><link>http://devfactor.blogspot.com/2009/10/first-post.html</link><category>blog</category><category>php</category><category>Symfony</category><pubDate>Mon, 12 Oct 2009 16:06:00 -0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-1162290550144402438.post-7313909976649747157</guid><description>Took me some time to decide if I should start a blog or not. But in the end I thought it is a good idea to store my thoughts and solutions at some place where I can come back to. So here I am ;)  I choose blogspot cos I don't really have time for writing my own blog. Besides, why should I reinvent the wheel? :P

In this blog I'll focus on Symfony framework and overall PHP issues I happen to step </description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><author>noreply@blogger.com (drako)</author></item></channel></rss>