<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-28215292.post4378194101663043297..comments</id><updated>2012-01-23T06:03:44.698+01:00</updated><category term='Eclipse PHP IDE'/><category term='edegem'/><category term='zf'/><category term='Motel 6'/><category term='tek11'/><category term='books'/><category term='bug'/><category term='bugs'/><category term='development'/><category term='sebastian bergmann'/><category term='community'/><category term='Zend Core'/><category term='hostweb'/><category term='phpbnl10'/><category term='opensocial'/><category term='mobileme'/><category term='chris cornut'/><category term='job'/><category term='configuration'/><category term='embedded device'/><category term='video'/><category term='zend_framework'/><category term='bookreview'/><category term='php 5'/><category term='tek09'/><category term='StarBucks'/><category term='rant'/><category term='planet-php'/><category term='facebook'/><category term='seven things'/><category term='feweb'/><category term='Wendy&apos;s'/><category term='bru'/><category term='uml scheme'/><category term='handhelds'/><category term='java'/><category term='php architect'/><category term='authentication'/><category term='new website'/><category term='phpgg'/><category term='error handling'/><category term='webinar'/><category term='new logo'/><category term='data model'/><category term='wildfire'/><category term='marc delisle'/><category term='azure'/><category term='qaseries'/><category term='zendcon09'/><category term='graphical designer'/><category term='Zend Yellow Pages'/><category term='2007'/><category term='international'/><category term='Zend'/><category term='dutch'/><category term='anysurfer'/><category term='Zend Studio'/><category term='testfest'/><category term='stefan koopmanschap'/><category term='devzone'/><category term='mvc'/><category term='dojo'/><category term='uncon'/><category term='view'/><category term='objects of desire'/><category term='Eclipse'/><category term='delijn'/><category term='up'/><category term='crushed'/><category term='unit testing'/><category term='feedburner'/><category term='WAMP'/><category term='conferences'/><category term='open-source'/><category term='google'/><category term='php5'/><category term='podcast'/><category term='packt publishing'/><category term='web applications'/><category term='chris shiflett'/><category term='event'/><category term='zendcon07'/><category term='phpnw10'/><category term='in2it'/><category term='confoo11'/><category term='torvalds'/><category term='new features'/><category term='babelfish'/><category term='Steve Jobs'/><category term='translations'/><category term='spl'/><category term='IT consulting'/><category term='darby felton'/><category term='php.ini'/><category term='zfce'/><category term='september'/><category term='brussels'/><category term='qedwiki'/><category term='uml'/><category term='contact management'/><category term='VUA'/><category term='web server'/><category term='london'/><category term='zendcon08'/><category term='60secondtech'/><category term='microsoft windows genuine advantage program foute vertaling illegal wrong translation'/><category term='web application development'/><category term='catch'/><category term='dirk merkel'/><category term='tricks'/><category term='orkut'/><category term='kevlin henney'/><category term='round'/><category term='microsoft windows vista games computergames'/><category term='developer&apos;s guide'/><category term='sqlite'/><category term='ZendFramework'/><category term='remote'/><category term='phpmyadmin'/><category term='tux'/><category term='meeting'/><category term='felix de vliegher'/><category term='mash-ups'/><category term='ewt08'/><category term='ausy'/><category term='jquery'/><category term='early bird'/><category term='zendcon'/><category term='voipbuster gratis bellen sip linux macos'/><category term='12.1&quot;'/><category term='matthew weir o phinney'/><category term='Mission'/><category term='ipod'/><category term='iad'/><category term='twitter'/><category term='kernel'/><category term='Fisherman&apos;s Wharf'/><category term='Zend Certification'/><category term='symfony'/><category term='project management'/><category term='zend_form'/><category term='gmail'/><category term='zendx_jquery'/><category term='baby xander'/><category term='dpc09'/><category term='discussion'/><category term='linus'/><category term='carglass steenslag voorruit barst'/><category term='phpbelgium'/><category term='patrick allaert'/><category term='phpunit'/><category term='FOSDEM'/><category term='web developers'/><category term='microsoft windows novell linux patents patenten steve ballmer'/><category term='detachment'/><category term='vbulletin'/><category term='settings'/><category term='open source'/><category term='microsoft windows bsod installatie'/><category term='step-by-step'/><category term='presentation'/><category term='exceptions'/><category term='php center of expertise'/><category term='iphone'/><category term='hackathon'/><category term='pda'/><category term='fluffy'/><category term='zend technologies'/><category term='roosendaal'/><category term='web 2.0'/><category term='tips'/><category term='stefan priebsch'/><category term='elephant'/><category term='zendcon10'/><category term='windows azure'/><category term='zend framework certified engineer'/><category term='.net'/><category term='bubbling'/><category term='proximus'/><category term='tf09'/><category term='review'/><category term='sites'/><category term='phpazurecontest'/><category term='LPI'/><category term='bughuntday'/><category term='MySQL'/><category term='ZendCon 07'/><category term='smart business strategies'/><category term='phpdoc'/><category term='display_errors'/><category term='derrick rethans'/><category term='1991'/><category term='security'/><category term='belgacom smtp outage telenet bofh morse'/><category term='keynote'/><category term='feweb web2.0 secondlife skynetblogs flickr youtube'/><category term='acme'/><category term='pfc11'/><category term='cloud'/><category term='werkstations dell rollout new hardware'/><category term='10.2'/><category term='nexen'/><category term='flying'/><category term='trac'/><category term='class diagrams'/><category term='try'/><category term='joind.in'/><category term='Andries Seutens'/><category term='jarno brandt'/><category term='zend framework'/><category term='US NAVY'/><category term='remi woler'/><category term='elephpant'/><category term='credit crunch'/><category term='samurai'/><category term='Fleet Week'/><category term='ivo jansch'/><category term='itunes'/><category term='phptestfest'/><category term='bugzilla'/><category term='roaming'/><category term='phptek'/><category term='phpbenelux'/><category term='Alcatraz'/><category term='factuur communicatie kosten kortingen'/><category term='apple'/><category term='dia'/><category term='mvc-pattern'/><category term='amazon.com'/><category term='conference'/><category term='zend_config_xml'/><category term='phpwomen'/><category term='dpc2008'/><category term='zend framework standards'/><category term='dutch php conference 2008'/><category term='php-abstract'/><category term='2012'/><category term='zend studio for eclipse'/><category term='phplondon08'/><category term='crowd'/><category term='namespaces'/><category term='ibm'/><category term='agile'/><category term='packard bell'/><category term='helper'/><category term='fosdem08'/><category term='windows'/><category term='bugtracking'/><category term='moeders'/><category term='17'/><category term='recruitment'/><category term='matthew weier o phinney'/><category term='Yahoo'/><category term='amsterdam'/><category term='apache'/><category term='linux'/><category term='Hyatt'/><category term='dutch php conference 2009'/><category term='php 5.3'/><category term='kerst feesten kerstfeest'/><category term='guide'/><category term='birthday'/><category term='opensuse'/><category term='phpbnl12'/><category term='php'/><category term='zend_captcha'/><category term='ajax'/><category term='zc10'/><category term='tutorial'/><category term='Zend Platform'/><category term='phpnw'/><category term='calevans'/><category term='sfo'/><category term='keith casey'/><category term='ibuildings'/><category term='pfz'/><category term='how-to'/><category term='training courses'/><category term='book'/><category term='Zend Guard'/><category term='dpc10'/><category term='virus anti-virus anti-spam firewall ids pds'/><category term='french'/><category term='certification'/><category term='captcha'/><category term='phpbnl11'/><category term='tekx'/><category term='ligaya turmelle'/><category term='damien seguy'/><category term='qa'/><category term='expert php 5 tools'/><category term='de zandloper'/><category term='zend_layout'/><category term='imap'/><category term='wemmel'/><category term='San Francisco'/><category term='cal evans'/><category term='job changes'/><category term='microsoft'/><category term='tagging'/><category term='laptop crash enclosure 2.5 hard disk'/><category term='phpnw09'/><category term='fail'/><category term='mobistar'/><category term='failure'/><category term='commuting'/><title type='text'>Comments on DragonBe's PHP blog: Zend Framework data models</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.dragonbe.com/feeds/4378194101663043297/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default?start-index=26&amp;max-results=25'/><author><name>Michelangelo van Dam</name><uri>https://profiles.google.com/115104112579818801836</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-VRBQCDEOxBU/AAAAAAAAAAI/AAAAAAAACwQ/oW2Y2K2M1U4/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-28215292.post-7325195154916875373</id><published>2011-12-02T03:22:46.954+01:00</published><updated>2011-12-02T03:22:46.954+01:00</updated><title type='text'>This is a bad implementation and I don&amp;#39;t sugge...</title><content type='html'>This is a bad implementation and I don&amp;#39;t suggest anyone use it&lt;br /&gt;&lt;br /&gt;You are calling findDependentRowset twice (for contacts and addresses) for every row in the rowset.  This is very slow...&lt;br /&gt;&lt;br /&gt;Even worse, if you have a many to one relationship (e.g. many users assigned to one address) then you would end up running the same query multiple times.&lt;br /&gt;&lt;br /&gt;Why not just do this:&lt;br /&gt;&lt;br /&gt;1. Fetch all users&lt;br /&gt;&lt;br /&gt;2. Get all the user IDs in the users rowset (you could extend Zend_Db_Table_Rowset to add this function)&lt;br /&gt;&lt;br /&gt;3. Get all the contacts in 1 query. e.g. $contactTable-&amp;gt;find($userIds);&lt;br /&gt;&lt;br /&gt;4. Get all the addresses in 1 query. e.g. $addressTable-&amp;gt;find($userIds);&lt;br /&gt;&lt;br /&gt;Then all you have is 3 queries which gets exactly the same data.&lt;br /&gt;&lt;br /&gt;You could also create a rowset class for addresses and contacts to add a function like getByUser so you can return a subset just for 1 user</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/7325195154916875373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/7325195154916875373'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1322792566954#c7325195154916875373' title=''/><author><name>Boris</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1436684242'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-3325497718406051217</id><published>2011-10-11T12:58:55.708+02:00</published><updated>2011-10-11T12:58:55.708+02:00</updated><title type='text'>If you find that you need a particular model globa...</title><content type='html'>If you find that you need a particular model globally throughout your application, you can tell CodeIgniter to auto-load it during system initialization. This is done by opening the application/config/autoload.php file and adding the model to the autoload array. I hope my post will be helpful with respect to some &lt;a href="http://www.mywebsitenow.com.au/website.php/ecommerce-solutions" rel="nofollow"&gt;marketing solutions&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/3325497718406051217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/3325497718406051217'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1318330735708#c3325497718406051217' title=''/><author><name>MyWebsite</name><uri>http://www.blogger.com/profile/12076573437449951897</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1875021742'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-8704954031164394667</id><published>2011-09-25T19:49:26.403+02:00</published><updated>2011-09-25T19:49:26.403+02:00</updated><title type='text'>You can find some helpful articles about Zend Fram...</title><content type='html'>You can find some helpful articles about Zend Framework here http://plutov.by/tag/zf</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/8704954031164394667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/8704954031164394667'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1316972966403#c8704954031164394667' title=''/><author><name>alexander.plutov</name><uri>http://www.blogger.com/profile/02825950878380323722</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1455753481'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-480449527865779867</id><published>2011-06-30T17:43:12.043+02:00</published><updated>2011-06-30T17:43:12.043+02:00</updated><title type='text'>Well, so much for comprehending well-written docum...</title><content type='html'>Well, so much for comprehending well-written documentation. For those as dim as me at times, this worked:&lt;br /&gt;&lt;br /&gt;sudo svn checkout https://svn2.hosted-projects.com/in2it/datamodels/tags/step_1</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/480449527865779867'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/480449527865779867'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1309448592043#c480449527865779867' title=''/><author><name>Frank Drouillard</name><uri>http://www.blogger.com/profile/00761910392362178678</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_yFr7fc56yGk/SYSgWk6CqGI/AAAAAAAAADc/ee1lpciNKEE/S220/FDblogPhoto.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1334572959'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-4644363259765420704</id><published>2011-06-30T17:38:16.383+02:00</published><updated>2011-06-30T17:38:16.383+02:00</updated><title type='text'>This is the simple example I&amp;#39;ve been seeking!
...</title><content type='html'>This is the simple example I&amp;#39;ve been seeking!&lt;br /&gt;&lt;br /&gt;Is there an easier way to obtain the four data models, mappers and table gateways? The svn asks for a username and password.&lt;br /&gt;&lt;br /&gt;Thanks!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/4644363259765420704'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/4644363259765420704'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1309448296383#c4644363259765420704' title=''/><author><name>Frank Drouillard</name><uri>http://www.blogger.com/profile/00761910392362178678</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_yFr7fc56yGk/SYSgWk6CqGI/AAAAAAAAADc/ee1lpciNKEE/S220/FDblogPhoto.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1334572959'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-9014356966115334639</id><published>2011-06-13T17:32:05.828+02:00</published><updated>2011-06-13T17:32:05.828+02:00</updated><title type='text'>Why didnt you show us the Mapper_Abstract? You def...</title><content type='html'>Why didnt you show us the Mapper_Abstract? You define the set_mapper function but provide no code. This post seems to be missing a lot of information</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/9014356966115334639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/9014356966115334639'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1307979125828#c9014356966115334639' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-905260429'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-3324317849641644862</id><published>2011-05-19T06:58:38.528+02:00</published><updated>2011-05-19T06:58:38.528+02:00</updated><title type='text'>I found you have noted each step in a different ma...</title><content type='html'>I found you have noted each step in a different manner and i like  the conversation  you made on these topic.You definitely put new spin on a subject thats been written about years.I enjoyed reading your blogs.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/3324317849641644862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/3324317849641644862'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1305781118528#c3324317849641644862' title=''/><author><name>ecommerce website developers</name><uri>http://ecommerce-web-developers.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2071867370'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-6518802806059031193</id><published>2011-02-16T11:12:02.785+01:00</published><updated>2011-02-16T11:12:02.785+01:00</updated><title type='text'>A very nice tutorial about the data models, I have...</title><content type='html'>A very nice tutorial about the data models, I have been testing this also but could not get it to waork as i wanted</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/6518802806059031193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/6518802806059031193'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1297851122785#c6518802806059031193' title=''/><author><name>wva</name><uri>http://www.vdw-subsidiedesk.nl/wva.htm</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1287208742'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-5598528875315857945</id><published>2011-02-16T11:05:37.610+01:00</published><updated>2011-02-16T11:05:37.610+01:00</updated><title type='text'>Warning. dont use &amp;quot;findDependentRowset&amp;quot; ...</title><content type='html'>Warning. dont use &amp;quot;findDependentRowset&amp;quot; in this manner:&lt;br /&gt;Use joins&lt;br /&gt;&lt;br /&gt;http://stackoverflow.com/questions/356778/php-query-single-value-per-iteration-or-fetch-all-at-start-and-retrieve-from-ar</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/5598528875315857945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/5598528875315857945'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1297850737610#c5598528875315857945' title=''/><author><name>Erik Landvall</name><uri>http://www.joppli.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-638556374'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-3886657232023637840</id><published>2011-01-12T13:19:08.177+01:00</published><updated>2011-01-12T13:19:08.177+01:00</updated><title type='text'>I am satisfied with your blog. Your post is dear. ...</title><content type='html'>I am satisfied with your blog. Your post is dear. Thanks for sharing your precious comprehension with me.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/3886657232023637840'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/3886657232023637840'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1294834748177#c3886657232023637840' title=''/><author><name>Dallas Decorative Concrete</name><uri>http://www.alltexasdecks.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2061727688'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-2548342402251049673</id><published>2011-01-11T13:39:06.232+01:00</published><updated>2011-01-11T13:39:06.232+01:00</updated><title type='text'>I would like a clarification on your following com...</title><content type='html'>I would like a clarification on your following comment:&lt;br /&gt;&lt;br /&gt;&amp;quot;I agree you have a point there, populate and toArray are methods that should reside in the mapper class....The reason I had them in my model is that I wanted to populate my model with data (from any source) and represent my model as an array.&amp;quot;&lt;br /&gt;&lt;br /&gt;The &amp;quot;populating of models from any source and representing model as array&amp;quot; can be accomplished even if the toArray and Populate functions are moved to the Mapper class, right?  I am not thinking this through correctly?&lt;br /&gt;&lt;br /&gt;BTW, for other who had the class not found error, you probably named your mapper folder &amp;quot;mapper&amp;quot; instead of &amp;quot;mappers&amp;quot;.  I made that mistake because that is how the folder is named in the svn upload.&lt;br /&gt;&lt;br /&gt;Thanks a zillion for the awsome article Michaelangelo!&lt;br /&gt;&lt;br /&gt;ZF_Mapper</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/2548342402251049673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/2548342402251049673'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1294749546232#c2548342402251049673' title=''/><author><name>ZF_Mapper</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-26384269'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-8420217399637340310</id><published>2010-12-10T11:09:22.323+01:00</published><updated>2010-12-10T11:09:22.323+01:00</updated><title type='text'>very informatory tutorial.</title><content type='html'>very informatory tutorial.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/8420217399637340310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/8420217399637340310'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1291975762323#c8420217399637340310' title=''/><author><name>web development developer</name><uri>http://www.veztekusa.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-167522516'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-6686108923899720862</id><published>2010-12-09T22:54:49.436+01:00</published><updated>2010-12-09T22:54:49.436+01:00</updated><title type='text'>Very nice and helpful tutorial. Helped me much bec...</title><content type='html'>Very nice and helpful tutorial. Helped me much because of the populate and toArray-methods. Thanks a lot.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/6686108923899720862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/6686108923899720862'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1291931689436#c6686108923899720862' title=''/><author><name>Chrissie</name><uri>http://www.x-tra-designs.org</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1442653876'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-7792184356613641656</id><published>2010-12-01T15:21:35.997+01:00</published><updated>2010-12-01T15:21:35.997+01:00</updated><title type='text'>Hi, the information you provide is very informativ...</title><content type='html'>Hi, the information you provide is very informative and I would like to say that the php based application is also easy to use and they are very user friendly. Please keep share the information.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/7792184356613641656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/7792184356613641656'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1291213295997#c7792184356613641656' title=''/><author><name>Php Application</name><uri>http://www.itsabacus.com/php.html</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1230634502'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-2158083993169598123</id><published>2010-11-14T19:00:18.298+01:00</published><updated>2010-11-14T19:00:18.298+01:00</updated><title type='text'>Thanks Jatin, you the man.</title><content type='html'>Thanks Jatin, you the man.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/2158083993169598123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/2158083993169598123'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1289757618298#c2158083993169598123' title=''/><author><name>Tektlab</name><uri>http://www.blogger.com/profile/10808987927087978010</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07806245840948412666'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://lh4.google.co.uk/image/tektlab/Rm0-Xe8JpSI/AAAAAAAAASM/YcXM8WLdZeU/February2007%20046.jpg?imgmax=800'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1174642127'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-3401594571717186745</id><published>2010-11-10T12:49:41.303+01:00</published><updated>2010-11-10T12:49:41.303+01:00</updated><title type='text'>Awesome article! I have gradually become fan of yo...</title><content type='html'>Awesome article! I have gradually become fan of your article and would like to suggest putting some new updates to make it more effective.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/3401594571717186745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/3401594571717186745'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1289389781303#c3401594571717186745' title=''/><author><name>web design hampshire</name><uri>http://www.123internetmarketing.co.uk/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1588642184'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-8734172664790128827</id><published>2010-10-27T08:10:49.373+02:00</published><updated>2010-10-27T08:10:49.373+02:00</updated><title type='text'>Hello,
interesting posting. But what about n:m rel...</title><content type='html'>Hello,&lt;br /&gt;interesting posting. But what about n:m relations?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/8734172664790128827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/8734172664790128827'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1288159849373#c8734172664790128827' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-701143927'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-6661819593723343886</id><published>2010-10-08T14:28:57.767+02:00</published><updated>2010-10-08T14:28:57.767+02:00</updated><title type='text'>@Teklab 

I faced the similar problem and fixed it...</title><content type='html'>@Teklab &lt;br /&gt;&lt;br /&gt;I faced the similar problem and fixed it with the help of BootStrap.php.&lt;br /&gt;&lt;br /&gt;You will have to modify BootStrap.php to this :-&lt;br /&gt;&lt;br /&gt;class Bootstrap extends Zend_Application_Bootstrap_Bootstrap&lt;br /&gt;{&lt;br /&gt;    protected function _initAutoload()&lt;br /&gt;    {&lt;br /&gt;        $autoloader = new Zend_Application_Module_Autoloader(array (&lt;br /&gt;            &amp;#39;namespace&amp;#39; =&amp;gt; &amp;#39;Default&amp;#39;,&lt;br /&gt;            &amp;#39;basePath&amp;#39; =&amp;gt; APPLICATION_PATH,&lt;br /&gt;        ));&lt;br /&gt;&lt;br /&gt;      $autoloader-&amp;gt;addResourceType(&amp;#39;mappers&amp;#39;, &amp;#39;models/Mapper/&amp;#39;);&lt;br /&gt;&lt;br /&gt;        return $autoloader;&lt;br /&gt;    }&lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/6661819593723343886'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/6661819593723343886'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1286540937767#c6661819593723343886' title=''/><author><name>Jatin Dhoot</name><uri>http://www.blogger.com/profile/00642392503702897058</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-612270826'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-5943318829828890405</id><published>2010-09-18T21:19:20.920+02:00</published><updated>2010-09-18T21:19:20.920+02:00</updated><title type='text'>@Anonymous,


The reason one chooses Zend Framewor...</title><content type='html'>@Anonymous,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The reason one chooses Zend Framework is to have a very powerful, stable and highly extensible framework that already solves about 60% of all your needs. But this power comes with a small cost.&lt;br /&gt;&lt;br /&gt;But nothing prevents you to query your data using static SQL.&lt;br /&gt;&lt;br /&gt;@Anonymous,&lt;br /&gt;&lt;br /&gt;I agree you have a point there, populate and toArray are methods that should reside in the mapper class. &lt;br /&gt;&lt;br /&gt;The reason I had them in my model is that I wanted to populate my model with data (from any source) and represent my model as an array.&lt;br /&gt;&lt;br /&gt;@Niels,&lt;br /&gt;&lt;br /&gt;Yes, in consistency with what @anonymous mentioned, it would make more sense.&lt;br /&gt;&lt;br /&gt;@Tektlab,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Well, the example presented here uses the autoloading heavily and when it cannot find it&amp;#39;s class it can mean one or all of the following:&lt;br /&gt;&lt;br /&gt;1) you haven&amp;#39;t set the namespace in your bootstrap&lt;br /&gt;2) you have your mappers in directory &amp;quot;mapper&amp;quot; in stead of &amp;quot;mappers&amp;quot; (plural)&lt;br /&gt;&lt;br /&gt;Go check your settings and see if you can debug the steps right to the point where you call &amp;#39;getMapper()&amp;#39; where you set your mapper.&lt;br /&gt;&lt;br /&gt;Let me know if it gives you some results or not.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/5943318829828890405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/5943318829828890405'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1284837560920#c5943318829828890405' title=''/><author><name>DragonBe</name><uri>http://www.blogger.com/profile/12610668749799675317</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16969274511863708634'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp3.blogger.com/_HhRzjL1_W1c/R_Xy_KpoHxI/AAAAAAAABUE/3IRQpOKEtfA/S220/michelangelo_van_dam_gravatar.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1296840527'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-4796730386063592965</id><published>2010-09-18T12:14:53.149+02:00</published><updated>2010-09-18T12:14:53.149+02:00</updated><title type='text'>Hi Michelangelo,
I keep getting this error:

Messa...</title><content type='html'>Hi Michelangelo,&lt;br /&gt;I keep getting this error:&lt;br /&gt;&lt;br /&gt;Message: Non-existing mapper class provided&lt;br /&gt;&lt;br /&gt;Stack trace:&lt;br /&gt;&lt;br /&gt;#0 D:\Work\testingServer\datamodels\application\models\Accounts.php(68): Default_Model_Abstract-&amp;gt;setMapper(&amp;#39;Default_Model_M...&amp;#39;)&lt;br /&gt;#1 D:\Work\testingServer\datamodels\application\models\Abstract.php(103): Default_Model_Accounts-&amp;gt;getMapper()&lt;br /&gt;#2 D:\Work\testingServer\datamodels\application\controllers\IndexController.php(14): Default_Model_Abstract-&amp;gt;fetchAll()&lt;br /&gt;#3 D:\Work\testingServer\datamodels\library\Zend\Controller\Action.php(513): IndexController-&amp;gt;indexAction()&lt;br /&gt;#4 D:\Work\testingServer\datamodels\library\Zend\Controller\Dispatcher\Standard.php(295): Zend_Controller_Action-&amp;gt;dispatch(&amp;#39;indexAction&amp;#39;)&lt;br /&gt;#5 D:\Work\testingServer\datamodels\library\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard-&amp;gt;dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))&lt;br /&gt;#6 D:\Work\testingServer\datamodels\library\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front-&amp;gt;dispatch()&lt;br /&gt;#7 D:\Work\testingServer\datamodels\library\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap-&amp;gt;run()&lt;br /&gt;#8 D:\Work\testingServer\datamodels\public\index.php(26): Zend_Application-&amp;gt;run()&lt;br /&gt;#9 {main}  &lt;br /&gt;Request Parameters:&lt;br /&gt;&lt;br /&gt;array (&lt;br /&gt;  &amp;#39;controller&amp;#39; =&amp;gt; &amp;#39;index&amp;#39;,&lt;br /&gt;  &amp;#39;action&amp;#39; =&amp;gt; &amp;#39;index&amp;#39;,&lt;br /&gt;  &amp;#39;module&amp;#39; =&amp;gt; &amp;#39;default&amp;#39;,&lt;br /&gt;)  &lt;br /&gt;&lt;br /&gt;Any ideas how I can diagnose it?&lt;br /&gt;Sorry to be so rubbish.&lt;br /&gt;Phil</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/4796730386063592965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/4796730386063592965'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1284804893149#c4796730386063592965' title=''/><author><name>Tektlab</name><uri>http://www.blogger.com/profile/10808987927087978010</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07806245840948412666'/><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://lh4.google.co.uk/image/tektlab/Rm0-Xe8JpSI/AAAAAAAAASM/YcXM8WLdZeU/February2007%20046.jpg?imgmax=800'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1174642127'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-4373915641025901389</id><published>2010-09-15T16:10:36.346+02:00</published><updated>2010-09-15T16:10:36.346+02:00</updated><title type='text'>Just to follow up on that. 

I would suggest putti...</title><content type='html'>Just to follow up on that. &lt;br /&gt;&lt;br /&gt;I would suggest putting up 2 abstract methods in the Mapper_Abstract class: &lt;br /&gt;&lt;br /&gt;abstract public function Populate($model);&lt;br /&gt;&lt;br /&gt;and &lt;br /&gt;&lt;br /&gt;abstract public function toArray($model);&lt;br /&gt;&lt;br /&gt;and than let end users implement populate and toArray in the specific mapper classes.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/4373915641025901389'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/4373915641025901389'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1284559836346#c4373915641025901389' title=''/><author><name>Niels</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-191891983'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-5493603777695430304</id><published>2010-09-15T15:50:52.827+02:00</published><updated>2010-09-15T15:50:52.827+02:00</updated><title type='text'>Hi Michelangelo, great post. I&amp;#39;ve got a questi...</title><content type='html'>Hi Michelangelo, great post. I&amp;#39;ve got a question though about the toArray function.&lt;br /&gt;&lt;br /&gt;As it is, it&amp;#39;s located in the Default_Model_Account class. However, shouldn&amp;#39;t it be located in the corresponding mapper class (hence Default_Model_Mapper_Account)? The primary function of a mapper object is to link dbtable fields to object class properties, right?&lt;br /&gt;&lt;br /&gt;In the current example the Model class &amp;quot;knows&amp;quot; about database table fields...&lt;br /&gt;&lt;br /&gt;Like to here you&amp;#39;re insights.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/5493603777695430304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/5493603777695430304'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1284558652827#c5493603777695430304' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-191891983'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-7946696864613033386</id><published>2010-09-11T18:38:48.750+02:00</published><updated>2010-09-11T18:38:48.750+02:00</updated><title type='text'>don&amp;#39;t get the advantage of zend.. just to crea...</title><content type='html'>don&amp;#39;t get the advantage of zend.. just to create a listing so many thing need to be done. if procedural or even simple ooPHP it can be written within less than 5 lines</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/7946696864613033386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/7946696864613033386'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1284223128750#c7946696864613033386' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1584196089'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-7593453558013337633</id><published>2010-01-13T15:53:16.935+01:00</published><updated>2010-01-13T15:53:16.935+01:00</updated><title type='text'>Hi Michelangelo,

Nice post. I like your approach ...</title><content type='html'>Hi Michelangelo,&lt;br /&gt;&lt;br /&gt;Nice post. I like your approach on creating a model that represents the &amp;#39;view&amp;#39;  of that you wanted to achieve. I am currently also working on some examples using  table relations. Which I will post in the near future on my blog. As all roads lead to Rome I have a different take on it…&lt;br /&gt;&lt;br /&gt;Instead of creating a model that represents the view I add properties to the parent Model class. In your example this would be the User class. &lt;br /&gt;&lt;br /&gt;In the mapping of the User TDG to the User Model I have added something along the lines of(blog example):&lt;br /&gt;&lt;br /&gt;Inside my Blog Entry (posting) mapper map() function:&lt;br /&gt;/**&lt;br /&gt; * Get comments, find dependant rows in comments table&lt;br /&gt; */&lt;br /&gt;$commentMapper = new Blog_Model_CommentMapper();&lt;br /&gt;$commentRowset = $row-&amp;gt;findBlog_Model_DbTable_Comment();&lt;br /&gt;// or $commentRowset = $data-&amp;gt;findDependentRowset(&amp;#39;Blog_Model_DbTable_Comment&amp;#39;);&lt;br /&gt;$commentModelSet = $commentMapper-&amp;gt;mapToModelSet($commentRowset);&lt;br /&gt;$model-&amp;gt;setComments($commentModelSet);&lt;br /&gt;&lt;br /&gt;I set the blog entry property comments to contain a set of Blog_Entry_Comment models.&lt;br /&gt;With this solution, I can iterate trough child classes and use the full features in them; such as save, find, fetch all and such.&lt;br /&gt;&lt;br /&gt;Enough; I will send you what I am working on so you can see what I mean.&lt;br /&gt;&lt;br /&gt;Cheers, Leonard (VNU Media)&lt;br /&gt;&lt;br /&gt;Others check www.sreknord.net in the near future.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/7593453558013337633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/7593453558013337633'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1263394396935#c7593453558013337633' title=''/><author><name>Leonard Dronkers</name><uri>http://www.sreknord.net</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1285424069'/></entry><entry><id>tag:blogger.com,1999:blog-28215292.post-8495167086906000031</id><published>2010-01-08T08:27:49.637+01:00</published><updated>2010-01-08T08:27:49.637+01:00</updated><title type='text'>&lt;a href="http://qualitypoint.blogspot.com/2009/06/...</title><content type='html'>&lt;a href="http://qualitypoint.blogspot.com/2009/06/free-online-quiz-for-learning-php.html" rel="nofollow"&gt;Free online Quiz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://qualitypoint.blogspot.com/2010/01/php-quiz-questions-and-answers.html" rel="nofollow"&gt;PHP questions and answers&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/8495167086906000031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/28215292/4378194101663043297/comments/default/8495167086906000031'/><link rel='alternate' type='text/html' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html?showComment=1262935669637#c8495167086906000031' title=''/><author><name>QualityPoint</name><uri>http://www.blogger.com/profile/04189864817023998415</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.dragonbe.com/2010/01/zend-framework-data-models.html' ref='tag:blogger.com,1999:blog-28215292.post-4378194101663043297' source='http://www.blogger.com/feeds/28215292/posts/default/4378194101663043297' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-109160739'/></entry></feed>
