<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BLOG PUENTES DIAZ &#187; Symfony</title>
	<atom:link href="http://blog.puentesdiaz.com.ar/category/symfony/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.puentesdiaz.com.ar</link>
	<description>Otro sitio más de Puentes Diaz</description>
	<lastBuildDate>Thu, 04 Aug 2011 15:57:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Symfony 2 para phpBB4</title>
		<link>http://blog.puentesdiaz.com.ar/2010/03/02/symfony-2-para-phpbb4/</link>
		<comments>http://blog.puentesdiaz.com.ar/2010/03/02/symfony-2-para-phpbb4/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 18:00:47 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Software Libre]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://blog.puentesdiaz.com.ar/?p=224</guid>
		<description><![CDATA[En un reciente articulo de phpBB, se explica el porque se eligió Symfony 2, como base de desarrollo del nuevo phpBB4. Sobre Symfony 2 : http://symfony-reloaded.org Código http://github.com/symfony ¿Qué es Symfony 2? Symfony 2 es una reescritura completa de su &#8230; <a href="http://blog.puentesdiaz.com.ar/2010/03/02/symfony-2-para-phpbb4/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>En un reciente articulo de phpBB, se explica el porque se eligió Symfony 2, como base de desarrollo del nuevo phpBB4.</p>
<p>Sobre Symfony 2 : <a title="http://symfony-reloaded.org" rel="nofollow" href="http://symfony-reloaded.org/">http://symfony-reloaded.org<br />
</a>Código <a title="http://github.com/symfony" rel="nofollow" href="http://github.com/symfony">http://github.com/symfony</a></p>
<p><a id="Discussion" name="Discussion"></a></p>
<h2>¿Qué es Symfony 2?</h2>
<p>Symfony 2 es una reescritura completa de su código original, el cual se enfoca en resolver los problemas de las anteriores versiones ( 1.0 a  1.4). Symfony, se convirtió en una herraminta apreciada por la comunidad PHP. Tiene una gran cantidad de plugins que resuelven distintos desafios y promete un mejor uso de los recursos que como lo hacia symfony 1.</p>
<h2>¿Porque Symfony 2 para phpBB4?</h2>
<p>La siguiente lista explica en cada punto las razones. La misma esta basada en los items de los Principios de Programación de phpBB4.</p>
<ul>
<li> <strong>phpBB4</strong>: PHP 5.3+
<ul>
<li> <strong>Symfony 2</strong> fue re-escrito en PHP5.3, consistentemente con el enfoque de phpBB4.</li>
</ul>
</li>
<li> <strong>phpBB4</strong>: Hace uso de namespaces y de la autocarga standar.
<ul>
<li> <strong>Symfony 2</strong> es el primer framework en seguir el autoloading standard de PHP5.3, mejorando la interoperabilidad del proyecto PHP.</li>
</ul>
</li>
<li> <strong>phpBB4</strong>: Código limpio y modular orientado a objetos con clases desacopladas
<ul>
<li> <strong>Symfony 2</strong> es un framework orientado a objetos. De arquitectura simple y fácil API.</li>
</ul>
</li>
<li> <strong>phpBB4</strong>: Los Plugins pueden completamente reemplazar  MODs sin ningun cambio en el código
<ul>
<li> <strong>Symfony 2</strong>: Como se menciono antes Symfony 2 esta en bundles que no necesitan de modificaciones. Symfony 2 hace uso de códifo generado.</li>
</ul>
</li>
<li> <strong>phpBB4</strong>: Usar existentes librerias / frameworks en luhar de reinventar la rueda
<ul>
<li> <strong>Symfony 2</strong>: El uso de un framework como Symfony 2  ya casi permite esto. Además  Symfony 2 digue de cerca al Zend Framework.</li>
</ul>
</li>
<li> <strong>phpBB4</strong>: Fácil integración con software
<ul>
<li> <strong>Symfony 2</strong>: Usando Symfony 2 phpBB4 automaticamente podrá integrarse en un proyecto Symfony cualquiera. El diseño de Symfony 2 también requiere que hagamos phpBB de manera modular,.</li>
</ul>
</li>
<li> <strong>phpBB4</strong>: Escalabilidad (ejecutarse sobre clusters)
<ul>
<li> <strong>Symfony 2</strong>: Symfony tiene una historia de ejecutar grandes services, y Symfony 2 esta diseñado para la alta performance.</li>
</ul>
</li>
<li> <strong>phpBB4</strong>: Consistente con el uso de Dependency Injection
<ul>
<li> <strong>Symfony 2</strong> esta construido alrededor de un Dependency  Injection Container, usando Dependency Injection por todos lados.</li>
</ul>
</li>
<li> <strong>phpBB4</strong>: Pruebas automatizadas: Pruebas Unitarias,  integración de pruebas y pruebas funcionales con PHPUnit, Selenium
<ul>
<li> <strong>Symfony 2</strong> tiene ya las pruebas automatizadas y permite a los proyectos usar cualquier framework de pruebas.</li>
</ul>
</li>
<li> <strong>phpBB4</strong>: Un framework de desarrollo para phpBB (hacer  aplicaciones basadas en phpBB, estandarizar nuestro framework en una libreria)
<ul>
<li> <strong>Symfony 2</strong> es un framework y tiene mas sentido que hacer uno específico para phpBB. Partes de phpBB serán reusables.</li>
</ul>
</li>
</ul>
<p>Es absolutamente asombroso como Symfony 2 coincide con los requisitos de phpBB4.</p>
<p><a id="What_else_can_Symfony_2_give_us.3F" name="What_else_can_Symfony_2_give_us.3F"></a></p>
<h2>¿Que otra cosa puede Symfony 2 dar?</h2>
<p>Ya que su comunidad es muy grande, podemos contar con mas desarrolladores y mas aportes. Los clientes necesitan una integración de un foro dentro de un proyecto Symfony y es problema común para los programadores. En vez de crear un propio, se puede usar phpBB integrado. Los desarrolladores con esta necesidad pueden ayudar a phpBB.</p>
<p>Para conocer mas <a title="http://symfony-reloaded.org" rel="nofollow" href="http://symfony-reloaded.org/">http://symfony-reloaded.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2010/03/02/symfony-2-para-phpbb4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rendimiento Symfony = f(ORM)</title>
		<link>http://blog.puentesdiaz.com.ar/2009/10/25/rendimiento-symfony-form/</link>
		<comments>http://blog.puentesdiaz.com.ar/2009/10/25/rendimiento-symfony-form/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 19:07:57 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[Symfony]]></category>
		<category><![CDATA[doctrine]]></category>
		<category><![CDATA[orm]]></category>
		<category><![CDATA[propel]]></category>
		<category><![CDATA[rendimiento]]></category>

		<guid isPermaLink="false">http://www.puentesdiaz.com.ar/blog/?p=184</guid>
		<description><![CDATA[Bueno siguendo con el tema de rendimiento, esta claro que el ORM, no es un elemento mas de nuestro framework. La encuesta sigue en http://spreadsheets.google.com/viewform?formkey=dFVFLXdBcGNvcFEwdVZmN3ZLU193cmc6MA Como recordaran por el benchmark que comente aqui http://groups.google.com/group/symfony-es/browse_thread/thread/6a6cc2ec5b1d0920/66bdce04bcd7a2b4?hl=en#66bdce04bcd7a2b4 Pronto publicare el resultado de usar &#8230; <a href="http://blog.puentesdiaz.com.ar/2009/10/25/rendimiento-symfony-form/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Bueno siguendo con el tema de rendimiento, esta claro que el ORM, no es un elemento mas de nuestro framework.</p>
<p>La encuesta sigue en <a href="http://spreadsheets.google.com/viewform?formkey=dFVFLXdBcGNvcFEwdVZmN3ZLU193cmc6MA" target="_blank">http://spreadsheets.google.com/viewform?formkey=dFVFLXdBcGNvcFEwdVZmN3ZLU193cmc6MA</a></p>
<p>Como recordaran por el benchmark que comente aqui <a href="http://groups.google.com/group/symfony-es/browse_thread/thread/6a6cc2ec5b1d0920/66bdce04bcd7a2b4?hl=en#66bdce04bcd7a2b4" target="_blank">http://groups.google.com/group/symfony-es/browse_thread/thread/6a6cc2ec5b1d0920/66bdce04bcd7a2b4?hl=en#66bdce04bcd7a2b4</a></p>
<p>Pronto publicare el resultado de usar SF1.3+Doctrine2 con el resto de los resultados existentes en  <a href="http://www.puentesdiaz.com.ar/blog/?p=167" target="_blank">http://www.puentesdiaz.com.ar/blog/?p=167</a></p>
<p>Hasta ahora, el ranking del mas veloz, queda así</p>
<p>Symfony 1.3 ALPHA2 + Propel 1.4 BETA</p>
<p>supera a</p>
<p>Symfony 1.3 ALPHA2 + Propel 1.3 Final</p>
<p>supera a</p>
<p>Symfony 1.3 ALPHA2 + Doctrine 1.2 Final</p>
<p>Lo curioso es que Propel sigue siendo mucha mas rápido que Doctrine, e incluso a partir de las modificaciones que tiene PROPEL 1.4&#8230; es aun mas rápido&#8230; mucho mas rápido</p>
<p>Segun me comenta Francois Zaninotto en <a href="http://groups.google.com/group/propel-users/msg/8c512ae7c5f91059?hl=en" target="_blank">http://groups.google.com/group/propel-users/msg/8c512ae7c5f91059?hl=en </a><br />
Si eliminamos los tiempos de carga propios de Symfony, es decir lo ajeno a los ORM. El verdadero rendimiento del ORM, se deja ver. Mostrando un rendimiento de casi el doble del calculado inicialmente.</p>
<p>Una explicaciones la expone aqui<br />
<a href="http://groups.google.com/group/propel-users/msg/e1fa266179ae20da?hl=en" target="_blank">http://groups.google.com/group/propel-users/msg/e1fa266179ae20da?hl=en</a></p>
<p>En pocas palabras, se puede decir que este es otro ejemplo de &#8220;sobreingenieria&#8221;. Doctrine es muy impresionante por todo lo ofrecido. Una fuerte OO, etc.</p>
<p>Sin embargo, la eleccion entre PROPEL y DOCTRINE, se me presenta como otro caso en que debemos determinar donde esta linea. Merece hacer tanta herencia de clases? Hasta cuanto podemos renunciar al rendimiento&#8230;</p>
<p>Hasta ahora la encuesta muestra unos votos a favor de Doctrine&#8230;. Yo por mi parte le doy mi voto a PROPEL</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2009/10/25/rendimiento-symfony-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Practical Symfony: Jobeet &#8211; 2° Edición</title>
		<link>http://blog.puentesdiaz.com.ar/2009/10/21/practical-symfony-jobeet-2%c2%b0-edicion/</link>
		<comments>http://blog.puentesdiaz.com.ar/2009/10/21/practical-symfony-jobeet-2%c2%b0-edicion/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 22:00:57 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.puentesdiaz.com.ar/blog/?p=170</guid>
		<description><![CDATA[Desde hace ya unas cuantos días termine el proyecto de tener traducido a nuestro idioma la segunda edición del Libro Oficial de Capacitación Practical Symfony : JOBEET,&#160; y esta vez no solo para Symfony 1.2 sino también para el nuevo &#8230; <a href="http://blog.puentesdiaz.com.ar/2009/10/21/practical-symfony-jobeet-2%c2%b0-edicion/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Desde hace ya unas cuantos días termine  el proyecto de tener traducido a nuestro idioma la segunda edición del Libro Oficial de Capacitación Practical Symfony : <strong>JOBEET</strong>,&nbsp; y esta vez no solo para Symfony 1.2 sino también para  el nuevo Symfony 1.3. Como imaginarán es el mismo libro pero adaptado para la nueva versión.</p>
<p>El tutorial como es lógico está en constante cambio, revisando errores, y mejorando sus partes, con el finde dar un mejor recurso para los rrhh de las empresas. Con mejores versiones de cada una de sus partes así como el uso de las mejores prácticas del mundo profesional de desarrollo web<br />Y aunque esta muy bien realizado, se recomienda ver las últimos cambios en cada día del tutorial. </p>
<p>Como siempre, para nuestros dos más queridos ORMs</p>
<p>Symfony 1.3 + Propel:<br /><a class="aligncenter" href="http://www.symfony-project.org/jobeet/1_3/Propel/es/" target="_blank">http://www.symfony-project.org/jobeet/1_3/Propel/es/</a></p>
<p>Symfony 1.3 + Doctrine:<br /><a class="aligncenter" href="http://www.symfony-project.org/jobeet/1_3/Doctrine/es/" target="_blank">http://www.symfony-project.org/jobeet/1_3/Doctrine/es/</a></p>
<p>Symfony 1.2 + Propel:<br /><a class="aligncenter" href="http://www.symfony-project.org/jobeet/1_2/Propel/es/" target="_blank">http://www.symfony-project.org/jobeet/1_2/Propel/es/</a></p>
<p>Symfony 1.2 +  Doctrine:<br /><a class="aligncenter" href="http://www.symfony-project.org/jobeet/1_2/Doctrine/es/" target="_blank">http://www.symfony-project.org/jobeet/1_2/Doctrine/es/</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=dece6910-0c34-8833-be33-1d7ee5b39a9d" /></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2009/10/21/practical-symfony-jobeet-2%c2%b0-edicion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Performance Symfony : 1.3 : PROPEL &amp; DOCTRINE</title>
		<link>http://blog.puentesdiaz.com.ar/2009/10/20/performance-symfony-13-propel-doctrine/</link>
		<comments>http://blog.puentesdiaz.com.ar/2009/10/20/performance-symfony-13-propel-doctrine/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 22:00:59 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.puentesdiaz.com.ar/blog/?p=167</guid>
		<description><![CDATA[Castellano English Bueno, este prueba es muy inicial&#8230;. El planteo: Siguiendo Practical Jobeet con Propel y Doctrine, y usando Symfony1.3 ¿Cuanto demora interactuar con un simple ABM? Well, it&#8217;s just very initial The problem: Follow Practical Jobeet with Propel and &#8230; <a href="http://blog.puentesdiaz.com.ar/2009/10/20/performance-symfony-13-propel-doctrine/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table style="height: 368px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="background-color: #00ffff" align="center"><strong><br />
Castellano<br />
</strong></td>
<td style="background-color: #00ffff" align="center"><strong><br />
English<br />
</strong></td>
</tr>
<tr>
<td>Bueno, este prueba es muy inicial&#8230;.</p>
<p>El planteo: Siguiendo  Practical Jobeet con Propel y Doctrine, y usando Symfony1.3 ¿Cuanto demora interactuar con un simple ABM?</td>
<td>Well, it&#8217;s just very initial</p>
<p>The problem: Follow Practical Jobeet with Propel and Doctrine, and using Symfony1.3, How long takes interac with a simple CRUD?</td>
</tr>
<tr>
<td>Leyendo los Capítulos 1 y 3, para cada ORM, y envolviendo el controlador para el entorno DEV en un archivo benchmark estos fueron los tiempos.Los reportes tienen este formato:<br />
0 _ORM_WEBDIR_URL-TIEMPO.BMK</td>
<td>Reading the Chapters 1 and 3, for each ORM, and warp to front controller for DEV enviorement inside a benchmark file, these is the resultsThe reports has this format:<br />
0 _ORM_WEBDIR_URL-TIME.BMK</td>
</tr>
<tr>
<td style="text-align: center" colspan="2"></td>
</tr>
<tr>
<td style="background-color: #00ffff">Luego de generar el projecto y la aplicación</td>
<td style="background-color: #00ffff">After generate project and application</td>
</tr>
<tr>
<td style="text-align: center" colspan="2">0 _propel_web_benchmark.php-0.12712812423706.BMK</p>
<p>0 _doctrine_web_benchmark.php-0.1438159942627.BMK</td>
</tr>
<tr>
<td style="background-color: #00ffff">Luego de cargar los datos iniciales</td>
<td style="background-color: #00ffff">After load data</td>
</tr>
<tr>
<td style="text-align: center" colspan="2">0 _propel_web_benchmark.php-0.13877201080322.BMK</p>
<p>0 _doctrine_web_benchmark.php-0.1630699634552.BMK</td>
</tr>
<tr>
<td style="background-color: #00ffff">Luego de la generacion del modulo y creacion del ABM</td>
<td style="background-color: #00ffff">After generate modele and create the CRUD</td>
</tr>
<tr>
<td style="text-align: center" colspan="2">0 _propel_web_benchmark.php_job-0.16423082351685.BMK</p>
<div class="ii gt">0 _doctrine_web_benchmark.php_job-0.22494578361511.BMK</div>
</td>
</tr>
<tr>
<td style="text-align: center" colspan="2">-</td>
</tr>
</tbody>
</table>
<div class="ii gt">
<table style="height: 38px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="background-color: #00ffff" align="center">Otros test, note que &#8220;ORM_WEBDIR_URL&#8221;<br />
tiene reemplazados los &#8220;/&#8221; por unos &#8220;_&#8221;,<br />
asi sabemos que test ejecutamos</td>
<td style="background-color: #00ffff;text-align: center">Others test, note that &#8220;ORM_WEBDIR_URL&#8221;<br />
has replace the  &#8220;/&#8221; by  &#8220;_&#8221;,<br />
thus we know which  test run</td>
</tr>
</tbody>
</table>
<table style="height: 124px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="text-align: left" colspan="2">20/10/2009  16:48                 0 _propel_web_benchmark.php_job-0.18634295463562.BMK<br />
20/10/2009  16:48                 0 _propel_web_benchmark.php_job-0.20151519775391.BMK<br />
20/10/2009  16:58                 0 _propel_web_benchmark.php_job_create-0.21860218048096.BMK<br />
20/10/2009  16:56                 0 _propel_web_benchmark.php_job_create-0.25584602355957.BMK<br />
20/10/2009  16:55                 0 _propel_web_benchmark.php_job_edit_id_1-0.24364185333252.BMK<br />
20/10/2009  16:56                 0 _propel_web_benchmark.php_job_new-0.22872591018677.BMK<br />
20/10/2009  16:50                 0 _propel_web_benchmark.php_job_show_id_1-0.17427802085876.BMK</td>
</tr>
</tbody>
</table>
<table style="height: 150px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="text-align: left" colspan="2">20/10/2009  16:48                 0 _doctrine_web_benchmark.php_job-0.22568798065186.BMK<br />
20/10/2009  16:48                 0 _doctrine_web_benchmark.php_job-0.27266120910645.BMK<br />
20/10/2009  16:57                 0 _doctrine_web_benchmark.php_job_create-0.29636907577515.BMK<br />
20/10/2009  16:58                 0 _doctrine_web_benchmark.php_job_create-0.31708693504333.BMK<br />
20/10/2009  16:50                 0 _doctrine_web_benchmark.php_job_edit_id_1-0.36150407791138.BMK<br />
20/10/2009  16:56                 0 _doctrine_web_benchmark.php_job_new-0.27971601486206.BMK<br />
20/10/2009  16:50                 0 _doctrine_web_benchmark.php_job_show_id_1-0.27344703674316.BMK</td>
</tr>
</tbody>
</table>
<table style="height: 38px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="background-color: #00ffff" align="center">Probando ahora con Symfony 1.3 y el nuevo Propel 1.4</td>
<td style="background-color: #00ffff;text-align: center">Testing with Symfony 1.3 and the new one Propel 1.4</td>
</tr>
</tbody>
</table>
<table style="height: 166px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="text-align: left" colspan="2">22/10/2009  14:01-&gt; 0 _sfFULL_propel_web_benchmark.php-0.13401699066162.BMK<br />
22/10/2009  14:07-&gt; 0 _sfFULL_propel_web_benchmark.php_job-0.16235113143921.BMK<br />
22/10/2009  14:07-&gt; 0 _sfFULL_propel_web_benchmark.php_job-0.16368754986478.BMK<br />
22/10/2009  14:08-&gt; 0 _sfFULL_propel_web_benchmark.php_job_create-0.21050310134888.BMK<br />
22/10/2009  14:08-&gt; 0 _sfFULL_propel_web_benchmark.php_job_create-0.21248616913548.BMK<br />
22/10/2009  14:07-&gt; 0 _sfFULL_propel_web_benchmark.php_job_edit_id_1-0.25051593780518.BMK<br />
22/10/2009  14:08-&gt; 0 _sfFULL_propel_web_benchmark.php_job_edit_id_3-0.24934816360474.BMK<br />
22/10/2009  14:07-&gt; 0 _sfFULL_propel_web_benchmark.php_job_new-0.24454116821289.BMK<br />
22/10/2009  14:04-&gt; 0 _sfFULL_propel_web_benchmark.php_job_show_id_3-0.17340588569641.BMK<br />
22/10/2009  14:08-&gt; 0 _sfFULL_propel_web_benchmark.php_job_update_id_3-0.14927196502686.BMK</td>
</tr>
</tbody>
</table>
<p><a href="#resultado">RESULTADOS</a></p>
<p style="text-align: center"><a href="#resultado"><strong><span style="background-color: #ffcc00">Symfony 1.3 + Propel 1.4</span> &gt; <span style="background-color: #ffcc99">Symfony 1.3 + Propel 1.3</span> &gt; <span style="background-color: #ffff99">Symfony 1.3 + Doctrine 1.2</span></strong></a></p>
<table style="height: 38px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="background-color: #00ffff" align="center">Comparando (%) Propel 1.4 y Doctrine 1.2</td>
<td style="background-color: #00ffff;text-align: center">Comparation (%) Propel 1.4 and Doctrine 1.2</td>
</tr>
</tbody>
</table>
<table style="height: 38px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="background-color: #00ffff" align="center">Sabiendo que  Symfony 1.3 le toma 0.10 en carga todo, sin hacer uso de la DDBB</td>
<td style="background-color: #00ffff;text-align: center">Knowing that Symfony 1.3 take 0.10 autoload all, without use the DDBB</td>
</tr>
</tbody>
</table>
<table style="height: 193px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="text-align: left" colspan="2">Propel 1.4 beta<br />
22/10/2009  14:04            0 _sfFULL_propel_web_benchmark.php_job_show_id_3-0.17340588569641.BMK<br />
Propel 1.3<br />
20/10/2009  16:50            0 _propel_web_benchmark.php_job_show_id_1-0.17427802085876.BMK<br />
Doctrine 1.2<br />
20/10/2009  16:50            0 _doctrine_web_benchmark.php_job_show_id_1-0.27344703674316.BMK</p>
<p>Comparativa ORM Inicial ( Propel 1.4 / Doctrine 1.2 ) : ( 0.173 ) / ( 0.273 ) = 63%<br />
Comparativa ORM Real ( Propel 1.4 / Doctrine 1.2 ) : ( 0.173 &#8211; 0.10 ) / ( 0.273 &#8211; 0.10 ) = 42%</td>
</tr>
</tbody>
</table>
<table style="height: 195px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="text-align: left" colspan="2">Propel 1.4 beta<br />
22/10/2009  14:08            0 _sfFULL_propel_web_benchmark.php_job_create-0.21248616913548.BMK<br />
Propel 1.3<br />
20/10/2009  16:56            0 _propel_web_benchmark.php_job_create-0.25584602355957.BMK<br />
Doctrine 1.2<br />
20/10/2009  16:58            0 _doctrine_web_benchmark.php_job_create-0.31708693504333.BMK</p>
<p>Comparativa ORM Inicial ( Propel 1.4 / Doctrine 1.2 ) : ( 0.212 ) / ( 0.317 ) = 66%<br />
Comparativa ORM Real ( Propel 1.4 / Doctrine 1.2 ) : ( 0.212 &#8211; 0.10 ) / ( 0.317 &#8211; 0.10 ) = 51%</td>
</tr>
</tbody>
</table>
<table style="height: 38px" border="0" width="624" align="center">
<tbody>
<tr>
<td style="background-color: #00ffff" align="center">Sin querer ofender a nadie <img src='http://blog.puentesdiaz.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , pero&#8230;</p>
<p>Propel es dos veces más rápido</td>
<td style="background-color: #00ffff;text-align: center">I don&#8217;t want offend to anyone <img src='http://blog.puentesdiaz.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , but&#8230;</p>
<p>Propel is twice faster</td>
</tr>
</tbody>
</table>
<p style="text-align: left">
<p style="text-align: left">
<p style="text-align: left">
<p style="text-align: left">
<p style="text-align: left">
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2009/10/20/performance-symfony-13-propel-doctrine/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Symfony 1.2 Bondades de Doctrine</title>
		<link>http://blog.puentesdiaz.com.ar/2008/11/07/symfony-12-bondades-de-doctrine/</link>
		<comments>http://blog.puentesdiaz.com.ar/2008/11/07/symfony-12-bondades-de-doctrine/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 12:53:47 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[Software Libre]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.puentesdiaz.com.ar/blog/?p=95</guid>
		<description><![CDATA[Un Gran Agradecimiento Una gran cantidad de cosas impresionantes, se han añadido recientemente a la proxima gran entrega de symfony 1.2. Fabien ha trabajado muy duro para agregar sin dudas las más sofisticadas características que cualquier otro framework PHP pudiera &#8230; <a href="http://blog.puentesdiaz.com.ar/2008/11/07/symfony-12-bondades-de-doctrine/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h2>Un Gran Agradecimiento</h2>
<p>Una gran cantidad de cosas impresionantes, se han añadido recientemente a la proxima gran entrega de symfony 1.2. Fabien ha trabajado muy duro para agregar sin dudas las más sofisticadas características que cualquier otro framework PHP pudiera tener hoy en día. No sólo son características agradables sino que fueron implementadas Orientada a Objeto por lo que ha sido sencillo para mi implmentar algunas características con otro ORM, <a href="http://www.doctrine-project.org">Doctrine</a>.Todo esto se hizo con muy poco trabajo de mi parte. Por lo tanto, doy muchas gracias a él y disfruta de este artículo.</p>
<h2>Ejemplo del mundo real</h2>
<p>En este artículo voy a empezar desde el principio con un nuevo proyecto symfony 1.2 para que puedas ponerte en marcha con Doctrine. Vamos a utilizar un esquema típico de tu sistema de gestión de contenidos. El esquema consta de los artículos, los autores y categorías donde los artículos son internacionalizados.</p>
<h2>Comienza tu Proyecto</h2>
<p>En primer lugar necesitas inicializar un nuevo proyecto symfony 1.2 y inicializar un app backend. Asegúrate de que estás utilizando el último código del svn pues beta1 no incluye esta funcionalidad de Doctrine.</p>
<p><strong>Generar tu proyecto</strong></p>
<pre>mkdir cms
cd cms
symfony generate:project cms
</pre>
<p><strong>Generar la aplicación backend</strong></p>
<pre>symfony generate:app backend</pre>
<h2>Todo el mundo encienda su Doctrine</h2>
<p>Ahora tenemos que habilitar Doctrine y desactivar Propel <img src='http://blog.puentesdiaz.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Edita tu <code>config/ProjectConfiguration.class.php</code> y agregue el código siguiente a tu función <code>setup()</code>.</p>
<pre>
public function setup()
{
  $this-&gt;enablePlugins(array('sfDoctrinePlugin'));
  $this-&gt;disablePlugins(array('sfPropelPlugin'));
}
</pre>
<p>Ahora que Doctrine está habilitado podemos enumerar las tareas disponibles de Doctrine:</p>
<pre>
./symfony list doctrine

Available tasks for the "doctrine" namespace:
  :build-all                   Generates Doctrine model, SQL and initializes the database (doctrine-build-all)
  :build-all-load              Generates Doctrine model, SQL, initializes database, and load data (doctrine-build-all-load)
  :build-all-reload            Generates Doctrine model, SQL, initializes database, and load data (doctrine-build-all-reload)
  :build-all-reload-test-all   Generates Doctrine model, SQL, initializes database, load data and run all test suites (doctrine-build-all-reload-test-all)
  :build-db                    Creates database for current model (doctrine-build-db)
  :build-filters               Creates filter form classes for the current model
  :build-forms                 Creates form classes for the current model (doctrine-build-forms)
  :build-model                 Creates classes for the current model (doctrine-build-model)
  :build-schema                Creates a schema from an existing database (doctrine-build-schema)
  :build-sql                   Creates SQL for the current model (doctrine-build-sql)
  :data-dump                   Dumps data to the fixtures directory (doctrine-dump-data)
  :data-load                   Loads data from fixtures directory (doctrine-load-data)
  :dql                         Execute a DQL query and view the results (doctrine-dql)
  :drop-db                     Drops database for current model (doctrine-drop-db)
  :generate-admin              Generates a Doctrine admin module
  :generate-migration          Generate migration class (doctrine-generate-migration)
  :generate-migrations-db      Generate migration classes from existing database connections (doctrine-generate-migrations-db, doctrine-gen-migrations-from-db)
  :generate-migrations-models  Generate migration classes from an existing set of models (doctrine-generate-migrations-models, doctrine-gen-migrations-from-models)
  :generate-module             Generates a Doctrine module (doctrine-generate-crud, doctrine:generate-crud)
  :generate-module-for-route   Generates a Doctrine module for a route definition
  :insert-sql                  Inserts SQL for current model (doctrine-insert-sql)
  :migrate                     Migrates database to current/specified version (doctrine-migrate)
  :rebuild-db                  Creates database for current model (doctrine-rebuild-db)
</pre>
<h2>El Esquema</h2>
<p>Ahora empieza la diversión. Tenemos Doctrine habilitado por lo que la primera cosa que necesitamos es definir nuestro esquema del CMS en <code>config/doctrine/schema.yml</code>.</p>
<pre>---
Article:
  actAs:
    Timestampable:
    I18n:
      fields: [title, content]
  columns:
    author_id: integer
    status:
      type: enum
      values: [Draft, Published]
      notnull: true
    title:
      type: string(255)
      notnull: true
    content:
      type: clob
      notnull: true
    is_on_homepage: boolean
    published_at: timestamp
  relations:
    Author:
      foreignAlias: Articles
    Categories:
      class: Category
      refClass: ArticleCategory
      foreignAlias: Articles
&nbsp;
Category:
  columns:
    name:
      type: string(255)
      notnull: true
&nbsp;
Author:
  columns:
    name:
      type: string(255)
      notnull: true
    about: string(1000)
&nbsp;
ArticleCategory:
  columns:
    article_id: integer
    category_id: integer
  relations:
    Article:
      foreignAlias: ArticleCategories
    Category:
      foreignAlias: ArticleCategories
&nbsp;</pre>
<h2>Datos Fixtures</h2>
<p>Tenemos nuestro esquema, ahora necesitamos algunos datos para ponerlo a prueba por lo que copia de los siguientes YAML en <code>data/fixtures/data.yml</code></p>
<pre>
---
Article:
  Article_1:
    Author: jwage
    status: Published
    is_on_homepage: true
    published_at: ''
    Categories: [article, ontheedge]
    Translation:
      en:
        title: symfony 1.2 and Doctrine
        content: Article about the new Doctrine integration in symfony 1.2
      fr:
        title: symfony 1.2 et doctrine
        content: Article sur l'intégration de Doctrine dans symfony 1.2

Author:
  jwage:
    name: Jonathan H. Wage
    about: Jonathan is the lead developer of the Doctrine project and is also a core contributor to the symfony project.

Category:
  article:
    name: Article
  tutorial:
    name: Tutorial
  ontheedge:
    name: Living on the edge
 </pre>
<h2>Desarrollo y Pruebas</h2>
<p>Ahora que tenemos nuestro esquema y los datos tenemos todo lo que necesitamos para inicializar nuestra base de datos, modelos, formularios, datos, etc. Esto puede ser hecho con el muy simplemente comando siguiente:</p>
<pre>./symfony doctrine:build-all-reload --no-confirmation
&gt;&gt; doctrine  dropping databases
&gt;&gt; doctrine  creating databases
&gt;&gt; doctrine  generating model classes
&gt;&gt; doctrine  generating sql for models
&gt;&gt; doctrine  generating form classes
&gt;&gt; doctrine  generating filter form classes
&gt;&gt; doctrine  created tables successfully
&gt;&gt; doctrine  loading data fixtures from "/Us...ymfony12doctrine/data/fixtures"
</pre>
<p>Eso fue demasiado fácil, cuando se va a poner difícil? Ahora vamos a hacer la inspección con DQL para ver los datos que se cargaron correctamente.</p>
<pre>
./symfony doctrine:dql "FROM Article a, a.Author a2, a.Translation t"
&gt;&gt; doctrine  executing dql query
DQL: FROM Article a, a.Author a2, a.Translation t
found 1 results
-
  id: '1'
  author_id: '1'
  status: Published
  is_on_homepage: true
  published_at: '2008-11-06 04:37:11'
  created_at: '2008-11-06 16:37:11'
  updated_at: '2008-11-06 16:37:11'
  Author:
    id: '1'
    name: 'Jonathan H. Wage'
    about: 'Jonathan is the lead developer of the Doctrine project and is also a core contributor to the symfony project.'
  Translation:
    en:
      id: '1'
      title: 'symfony 1.2 and Doctrine'
      content: 'Article about the new Doctrine integration in symfony 1.2'
      lang: en
    fr:
      id: '1'
      title: 'symfony 1.2 et doctrine'
      content: 'Article sur l''intégration de Doctrine dans symfony 1.2'
      lang: fr
</pre>
<p>Esto puede ser su primer gusto del Doctrine Query Language, también conocido como DQL. Se parece mucho a SQL no? Cierre la boca, que estás babeando.</p>
<p>Para aquellos de ustedes que no quieran escribir cadenas de DQL, no te preocupes tenemos un completo objeto <code>Doctrine_Query</code> para la construcción de tus consultas.</p>
<pre>
$q = Doctrine_Query::create()
  -&gt;from('Article a, a.Author a2, a.Translation t');
$articles = $q-&gt;execute();
</pre>
<h2>Generadores de Admin</h2>
<p>Ahora que tenemos todo construido, podemos empezar a generar algunas cosas con la magia symfony. Vamos a empezar por la definición de la Colecciones de Rutas para la gestión de nuestros artículos, autores y categorías. Abre <code>apps/backend/config/routing.yml</code> en tu editor y pega las siguientes rutas dentro.</p>
<pre>
articles:
  class:         sfDoctrineRouteCollection
  options:
    model:       Article
    module:      articles
    with_show:   true
    collection_actions: { filter: post, batch: post }

categories:
  class:         sfDoctrineRouteCollection
  options:
    model:       Category
    module:      categories
    with_show:   true
    collection_actions: { filter: post, batch: post }

authors:
  class:         sfDoctrineRouteCollection
  options:
    model:       Author
    module:      authors
    with_show:   true
    collection_actions: { filter: post, batch: post }
</pre>
<p>Estas rutas nos permitirán generar un módulo generador de administrador para la gestión de los datos a través de cada uno de los modelos de Doctrine. Ejecute los siguientes comandos para generar los tres módulos.</p>
<pre>
./symfony doctrine:generate-admin backend articles
$ ./symfony doctrine:generate-admin backend categories
$ ./symfony doctrine:generate-admin backend authors
</pre>
<p>Ahora, cuando tiene acceso al modulo <code>categories</code> desde el backend deberías ver lo siguiente.</p>
<p><img src="http://www.symfony-project.org/uploads/assets/doctrine/new_admin_gen.gif" alt="New Admin Generators"></p>
<p>Ahora deseas, perrsonalizar un poco los artículos generados de admin para mostrar sólo una serie de campos en la lista y los filtros del formulario. Puedes hacerlo editando el <code>generator.yml</code> situado en <code>apps/backend/modules/categories/config/generator.yml</code>.</p>
<pre>
config:
  list:
    display:  [title, published_at, is_on_homepage, status]
  filter:
    class:    ArticleFormFilter
    display:  [author_id, status, is_on_homepage, published_at, categories_list]
</pre>
<p>Puedes personalizar los otros módulos de la misma forma.</p>
<p>Ahora, si cambia la URL <code>?sf_culture=fr</code> en su URL el título se mostrará la versión en francés. Debería ver lo siguiente en su navegador cuando levantes hacia arriba el módulo de artículos.</p>
<p><img src="http://www.symfony-project.org/uploads/assets/doctrine/new_admin_gen_articles.gif" alt="New Admin Generators"></p>
<h2>Edición de Traducciones</h2>
<p>Ahora, ¿cómo trabaja la edición de esas traducciones? Si te acuerdas de esto con los antiguos generadores de admin, era casi imposible. Ahora, se trata de una cuestión de añadir una línea de código a nuestro <code>ArticleForm</code>. Todo que tenemos que hacer es embeber/integrar/fusionar el formulario <code>ArticleTranslation</code>. Esto se puede hacer editando <code>lib/form/doctrine/ArticleForm.class.php</code> y añadiendo el código siguiente al <code>configure()</code></p>
<pre>
public function configure()
{
  $this-&gt;embedI18n(array('en', 'fr'));
}
</pre>
<p>Ahora, cuando editas un artículo, verás que tienes la capacidad de editar directamente las traducciones dentro del artículo.</p>
<p><img src="http://www.symfony-project.org/uploads/assets/doctrine/new_admin_gen_i18n.gif" alt="New Admin Generators I18n"></p>
<p>Ahora que está muy bien pero que si deseas editar el <code>Author</code> directamente dentro del <code>Article</code> como así y que se cree un nuevo <code>Author</code> si no existe y el uso del actual <code>Author</code> si ese nombre existe. Esto es simple.</p>
<h2>Editar / Añadir autor</h2>
<p>Con el fin de añadir la funcionalidad descrita anteriormente tenemos que añadir un poco de código en tres lugares diferentes. En primer lugar necesitas embeber el formulario <code>Author</code> en el formulario <code>Article</code> editando <code>lib/form/doctrine/ArticleForm.class.php</code> y agregue el código siguiente.</p>
<pre>
public function configure()
{
  unset($this['author_id']);
  $authorForm = new AuthorForm($this-&gt;getObject()-&gt;getAuthor());
  unset($authorForm['about']);
  $this-&gt;embedForm('Author', $authorForm);

  $this-&gt;embedI18n(array('en', 'fr'));
}
</pre>
<blockquote class="sidebar"><p class="title">Optionally Optimize Queries</p>
<p>Ahora podemos modificar las acciones de la clase <code>articles</code> para que se le sumen el <code>Autor</code> y la <code>Traducción</code> a fin de que los datos se sumen a la consulta  principal y no perezosamente cargado por Doctrine invocando adicionales consultas a la base de datos. Este paso es opcional. Abre <code>apps/backend/modules/articles/actions/actions.class.php</code> y sobreescribe la función <code>executeEdit()</code>.</p>
<pre>
public function executeEdit(sfWebRequest $request)
{
  $this-&gt;article = Doctrine_Query::create()
    -&gt;from('Article a')
    -&gt;leftJoin('a.Author a2')
    -&gt;leftJoin('a.Translation t')
    -&gt;where('a.id = ?', $request-&gt;getParameter('id'))
    -&gt;fetchOne();
  $this-&gt;form = $this-&gt;configuration-&gt;getForm($this-&gt;article);
}
</pre>
</blockquote>
<p>Ahora, al ver la la edición y la creación de un artículo verá el formulario incorporado para el autor con la información existente.</p>
<p><img src="http://www.symfony-project.org/uploads/assets/doctrine/new_admin_gen_author.gif" alt="New Admin Generators Embedded Author"></p>
<p>Ahora el último paso es decir a Doctrine para que busque objetos existentes de <code>Author</code> la hora de establecer el nombre para que un nombre duplicado de  <code>Author</code> no sea creado. Edita <code>lib/model/doctrine/Author.class.php</code> y sobreescribe el <code>name</code> mutator añadiendo el siguiente código.</p>
<pre>
public function setName($name)
{
  $name = trim($name);
  $found = Doctrine_Query::create()
    -&gt;select('a.id')
    -&gt;from('Author a')
    -&gt;where('a.name = ?', $name)
    -&gt;fetchOne(array(), Doctrine::HYDRATE_ARRAY);
  if ($found)
  {
    $this-&gt;assignIdentifier($found['id']);
  } else {
    $this-&gt;_set('name', $name);
  }
}
</pre>
<p>El código anterior será para verificar si un <code>Author</code> con el nombre pasado ya existe, Si existe se asignará el identificador del registro encontrado de lo contrario es lo que normalmente haría, establecer el nombre para el objeto.</p>
<blockquote class="note"><p>
  Los métodos <code>_set()</code> y <code>_get()</code> deben utilizarse para evitar un bucle infinito cuando se sobrescriben accessors y mutators.</p>
</blockquote>
<p>Wow, lo que realmente acaba de construir todo un backend para gestionar el contenido de un simple sistema de gestión de contenido en menos de una hora? Estamos seguros de que sí. Pruébalo y disfruta el desarrollo de ricas funcionalidad basada en web utilizando symfony y Doctrine.</p>
<p>La presente, es una traducción al castellano realizada por Roberto G. Puentes Diaz,<br />
sobre el artículo <a target="_blank" href="http://www.symfony-project.org/blog/2008/11/07/new-in-symfony-1-2-doctrine-goodies">new-in-symfony-1-2-doctrine-goodies</a> de Jonathan Wage.</p>
<div>
<table>
<tbody>
<tr>
<td>
        <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/deed.es_AR" rel="license" target="_blank"><br />
          <img src="http://i.creativecommons.org/l/by-nc-nd/3.0/80x15.png" style="border-width: 0pt" alt="Creative Commons License" align="left"><br />
        </a>
      </td>
<td>
        Este <span>trabajo</span> esta licenciado bajo una Licencia<br />
        <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/deed.es_AR" rel="license" target="_blank">Creative Commons Atribución-No Comercial-Sin Obras Derivadas 3.0 Unported</a>.
      </td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2008/11/07/symfony-12-bondades-de-doctrine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse: Escribiendo Código rapido</title>
		<link>http://blog.puentesdiaz.com.ar/2008/10/28/eclipse-escribiendo-codigo-rapido/</link>
		<comments>http://blog.puentesdiaz.com.ar/2008/10/28/eclipse-escribiendo-codigo-rapido/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 13:10:58 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Software Libre]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.puentesdiaz.com.ar/blog/?p=62</guid>
		<description><![CDATA[Gracias a nuestro aclamado Eclipse PDT, el desarrollo de PHP, nunca fue tan facil. Si bien, gracias a symfony y al autocompletado, se hace todo muy intuitivo. Con Eclipse podemos hacernos nuestros propios atajos de codigo. Menu  &#62; Window &#62; &#8230; <a href="http://blog.puentesdiaz.com.ar/2008/10/28/eclipse-escribiendo-codigo-rapido/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Gracias a nuestro aclamado Eclipse PDT, el desarrollo de PHP, nunca fue tan facil.</p>
<p>Si bien, gracias a symfony y al autocompletado, se hace todo muy intuitivo. Con Eclipse podemos hacernos nuestros propios atajos de codigo.</p>
<p>Menu  &gt; Window &gt; Preferences &gt; PHP  &gt; Templates</p>
<p>Nos ofrecera la posibilidad de editar los existentes o de crear uno nuevo. Le damos a NEW y debemos tener algo asi:</p>
<div id="attachment_63" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.puentesdiaz.com.ar/files/2008/10/pdt_templates.jpg"><img class="size-medium wp-image-63" src="http://www.puentesdiaz.com.ar/blog/wp-content/uploads/2008/10/pdt_templates-300x225.jpg" alt="Captura de como crear un template de código PHP en Eclipse PDT" width="300" height="225" /></a><p class="wp-caption-text">Captura de como crear un template de código PHP en Eclipse PDT</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2008/10/28/eclipse-escribiendo-codigo-rapido/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generando el Modelo, a mi manera</title>
		<link>http://blog.puentesdiaz.com.ar/2008/10/24/generando-el-modelo-a-mi-manera/</link>
		<comments>http://blog.puentesdiaz.com.ar/2008/10/24/generando-el-modelo-a-mi-manera/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 12:54:10 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[Software Libre]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.puentesdiaz.com.ar/blog/?p=44</guid>
		<description><![CDATA[(El presente es un ensayo de como ire descubriendo como hacer cada cosa, por lo que tendría modificaciones sucesivas, sin embargo la idea es que lo que leas sirva y funcione) Es quizás muy petulante el título, pero esa es &#8230; <a href="http://blog.puentesdiaz.com.ar/2008/10/24/generando-el-modelo-a-mi-manera/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><sub>(El presente es un ensayo de como ire descubriendo como hacer cada cosa, por lo que tendría modificaciones sucesivas, sin embargo la idea es que lo que leas sirva y funcione)</sub></p>
<p>Es quizás muy petulante el título, pero esa es la idea. Osea Generar el Modelo. <img src='http://blog.puentesdiaz.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Como seguro ya se darían cuenta, con anteriores artículos y traducciones, estoy estudiando symfony 1.2 para mi proyecto.</p>
<p>Una de las cosas que hice primero fue hacer un ambiente para mis pruebas, con el fin de tener un ámbito para jugar a lo que se me ocurra. Osea que mi schema tiene muchas cosas, pero como es de pruebas &#8230; que va!</p>
<p>Una de las cosas que siempre me gusto es lo del método mágico __toString() de las clases del modelo generado. El poder luego redefinirlo en la clase personalizada, solicitando que devuelva un getXXX() y poder ver el dato de la base en los ABM / CRUD del administrador en lugar de los PrimaryKey, es realmente mas lindo.</p>
<p>Pero tener que redefinir en cada clase, puede ser molesto &#8230;<br />
Vamos, soy de los que se pierden haciendos &#8220;xxxxxx_id&#8221; por todos lados en el modelo &#8230; <img src='http://blog.puentesdiaz.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Por lo que tengo que redefinir muchos  __toString() .</p>
<p>Entonces porque no poder en el schema, definir un atributo tostring a true o especificar el nombre del campo a utilizar por el método magico, para que el generador/builder/constructor del modelo lo haga por mi ya desde la BaseClase.php ?</p>
<blockquote><p>Mi instalacion de Symfony 1.2 esta en /Symfony1.2.<br />
Digamos que en otro equipo distinto del que estamos trabajando, hice una descarga por SVN del la versión 1.2, y luego la copie a este DIR.<br />
Imagino que esto no tiene ningun tipo de incidencia.</p></blockquote>
<p>Veamos un poco el schema:</p>
<pre>propel:
   category:
    _attributes:    { phpName: Category, phpToString: Name }
    name:        varchar(255)</pre>
<p>La idea central, es definir un atributo <strong>phpToString</strong> que nos permita definir un texto, en este caso <strong>Name</strong>, y que en este caso tambien hace referencia al campo name declarado en la linea debajo.<br />
La finalidad es lograr que se genere un código / método toString() para esta clase, como el siguiente :</p>
<pre>    /**
     * Magic Method __toString will return the value of some field
     * if you setup the attributes of your schema for this object/table
     */
    public function __toString()
    {
        return $this-&gt;getName();

    }</pre>
<p>Note que por esta razón, puse <strong>Name</strong>, con la N en mayúsculas. Ya vere despues como hacer la transformación camelcase&#8230;<br />
El generador al <strong>$this-&gt;get</strong> le agregará a continuación lo que hallamos definido</p>
<p>Entiendo que iniciamos el script por generar de cada BaseClase.php, desde SfObjectBuilder. A continuación un extracto de como las clases se van heredando, según su definición:</p>
<pre>class SfObjectBuilder extends PHP5ObjectBuilder {

class PHP5ObjectBuilder extends ObjectBuilder {

abstract class ObjectBuilder extends OMBuilder {

abstract class OMBuilder extends DataModelBuilder {</pre>
<p>Hagamos un salto al objeto OMBuilder (<em>/Symfony1.2/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/builder/om/OMBuilder.php</em>)</p>
<pre>	 /**
	 * Builds the PHP source for current class and returns it as a string.
	 *
	 * This is the main entry point and defines a basic structure that classes should follow.
	 * In most cases this method will not need to be overridden by subclasses.  This method
	 * does assume that the output language is PHP code, so it will need to be overridden if
	 * this is not the case.
	 *
	 * @return     string The resulting PHP sourcecode.
	 */
	public function build()
	{
		$this-&gt;validateModel();

		$script = "&lt;" . "?php\n"; // intentional concatenation
		$this-&gt;addIncludes($script);
		$this-&gt;addClassOpen($script);
		$this-&gt;addClassBody($script);
		$this-&gt;addClassClose($script);
		return $script;
	}</pre>
<p>Estos metodo tan interesantes los podemos encontrar implementado en <em>(/Symfony1.2\lib\plugins\sfPropelPlugin\lib\vendor\propel-generator\classes\propel\engine\builder\om\php5\PHP5ObjectBuilder.php)</em> el objeto PHP5ObjectBuilder (use la flechita que esta a la derecha de la barra siguiente para ver los metodos)</p>
<pre>	/**
	 * Adds the include() statements for files that this class depends on or utilizes.
	 * @param      string &amp;$script The script will be modified in this method.
	 */
	protected function addIncludes(&amp;$script)
	{
	} // addIncludes()

	/**
	 * Adds class phpdoc comment and openning of class.
	 * @param      string &amp;$script The script will be modified in this method.
	 */
	protected function addClassOpen(&amp;$script)
	{

		$table = $this-&gt;getTable();
		$tableName = $table-&gt;getName();
		$tableDesc = $table-&gt;getDescription();
		$interface = $this-&gt;getInterface();

		$script .= "
/**
 * Base class that represents a row from the '$tableName' table.
 *
 * $tableDesc
 *";
		if ($this-&gt;getBuildProperty('addTimeStamp')) {
			$now = strftime('%c');
			$script .= "
 * This class was autogenerated by Propel " . $this-&gt;getBuildProperty('version') . " on:
 *
 * $now
 *";
		}
		$script .= "
 * @package    ".$this-&gt;getPackage()."
 */
abstract class ".$this-&gt;getClassname()." extends ".ClassTools::classname($this-&gt;getBaseClass())." ";

		$interface = ClassTools::getInterface($table);
		if ($interface) {
			$script .= " implements " . ClassTools::classname($interface);
		}

		$script .= " {

";
	}

	/**
	 * Specifies the methods that are added as part of the basic OM class.
	 * This can be overridden by subclasses that wish to add more methods.
	 * @see        ObjectBuilder::addClassBody()
	 */
	protected function addClassBody(&amp;$script)
	{
		$script = "\n" . $script;
		$table = $this-&gt;getTable();
		if (!$table-&gt;isAlias()) {
			$this-&gt;addConstants($script);
			$this-&gt;addAttributes($script);
		}

		$this-&gt;addConstructor($script);
		$this-&gt;addApplyDefaultValues($script);

		// NUEVO CODIGO // NEW CODE
		if ($this-&gt;getPhpToString() != false) {
			$this-&gt;addToString($script);
		}

		$this-&gt;addColumnAccessorMethods($script);
		$this-&gt;addColumnMutatorMethods($script);

		$this-&gt;addHasOnlyDefaultValues($script);

		$this-&gt;addHydrate($script);
		$this-&gt;addEnsureConsistency($script);

		$this-&gt;addManipulationMethods($script);
		$this-&gt;addValidationMethods($script);

		if ($this-&gt;isAddGenericAccessors()) {
			$this-&gt;addGetByName($script);
			$this-&gt;addGetByPosition($script);
			$this-&gt;addToArray($script);
		}

		if ($this-&gt;isAddGenericMutators()) {
			$this-&gt;addSetByName($script);
			$this-&gt;addSetByPosition($script);
			$this-&gt;addFromArray($script);
		}

		$this-&gt;addBuildCriteria($script);
		$this-&gt;addBuildPkeyCriteria($script);
		$this-&gt;addGetPrimaryKey($script);
		$this-&gt;addSetPrimaryKey($script);

		$this-&gt;addCopy($script);

		if (!$table-&gt;isAlias()) {
			$this-&gt;addGetPeer($script);
		}

		$this-&gt;addFKMethods($script);
		$this-&gt;addRefFKMethods($script);
		$this-&gt;addClearAllReferences($script);
	}

	/**
	 * Closes class.
	 * @param      string &amp;$script The script will be modified in this method.
	 */
	protected function addClassClose(&amp;$script)
	{
		$script .= "
} // " . $this-&gt;getClassname() . "
";
	}</pre>
<p>Note la nueva porción de código</p>
<pre>		// NUEVO CODIGO // NEW CODE
		if ($this-&gt;getPhpToString() != false) {
			$this-&gt;addToString($script);
		}</pre>
<p>Quien se encarga de analizar el schema sea YML o XML, es la clase sfPropelDatabaseSchema (<em>E:\wamp\apps\symfony\1.2\lib\plugins\sfPropelPlugin\lib\addon\sfPropelDatabaseSchema.class.php</em>)</p>
<p>La Clase Abstracta XMLElement (<em>/Symfony1.2/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/database/model/XMLElement.php</em>) representa a los elementos de un archivo XML. Es el método loadFromXML() quien toma esos <strong>atributos</strong></p>
<pre>	/**
	 * This is the entry point method for loading data from XML.
	 * It calls a setupObject() method that must be implemented by the child class.
	 * @param      array $attributes The attributes for the XML tag.
	 */
	public function loadFromXML($attributes)
	{
		$this-&gt;attributes = array_change_key_case($attributes, CASE_LOWER);
		$this-&gt;setupObject();
	}</pre>
<p>La misma es heredada por otras como Table y Database.</p>
<p>A la clase Table, debemos agregarle estas modificaciones. Es quien hereda de XMLElement e implementa IDMethod.<br />
(<em>/Symfony1.2/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/database/model/Table.php<br />
</em>)</p>
<p>Un atributo $phpToString</p>
<pre>    /**
     * The field name for the magic method __toString().
     *
     * @var        string
     */
    private $phpToString;</pre>
<p>Cargamos los valores al objeto, entre ellos $this-&gt;phpToString</p>
<pre>	/**
	 * Sets up the Rule object based on the attributes that were passed to loadFromXML().
	 * @see        parent::loadFromXML()
	 */
	public function setupObject()
	{
		$this-&gt;name = $this-&gt;getAttribute("name");
		$this-&gt;phpName = $this-&gt;getAttribute("phpName");
		$this-&gt;idMethod = $this-&gt;getAttribute("idMethod", $this-&gt;getDatabase()-&gt;getDefaultIdMethod());
		$this-&gt;allowPkInsert = $this-&gt;booleanValue($this-&gt;getAttribute("allowPkInsert"));

		// retrieves the method for converting from specified name to a PHP name.
		$this-&gt;phpNamingMethod = $this-&gt;getAttribute("phpNamingMethod", $this-&gt;getDatabase()-&gt;getDefaultPhpNamingMethod());

		$this-&gt;skipSql = $this-&gt;booleanValue($this-&gt;getAttribute("skipSql"));
		$this-&gt;readOnly = $this-&gt;booleanValue($this-&gt;getAttribute("readOnly"));

		$this-&gt;phpToString = $this-&gt;getAttribute("phpToString");
		$this-&gt;pkg = $this-&gt;getAttribute("package");
		$this-&gt;abstractValue = $this-&gt;booleanValue($this-&gt;getAttribute("abstract"));
		$this-&gt;baseClass = $this-&gt;getAttribute("baseClass");
		$this-&gt;basePeer = $this-&gt;getAttribute("basePeer");
		$this-&gt;alias = $this-&gt;getAttribute("alias");

		$this-&gt;heavyIndexing = ( $this-&gt;booleanValue($this-&gt;getAttribute("heavyIndexing"))
		|| ("false" !== $this-&gt;getAttribute("heavyIndexing")
		&amp;&amp; $this-&gt;getDatabase()-&gt;isHeavyIndexing() ) );
		$this-&gt;description = $this-&gt;getAttribute("description");
		$this-&gt;enterface = $this-&gt;getAttribute("interface"); // sic ('interface' is reserved word)
		$this-&gt;treeMode = $this-&gt;getAttribute("treeMode");

		$this-&gt;reloadOnInsert = $this-&gt;booleanValue($this-&gt;getAttribute("reloadOnInsert"));
		$this-&gt;reloadOnUpdate = $this-&gt;booleanValue($this-&gt;getAttribute("reloadOnUpdate"));
	}</pre>
<p>Los Getter y Setter</p>
<pre>    /**
     * Get the value of phpToString.
     * @return     value of phpToString.
     */
    public function getPhpToString()
    {
        return $this-&gt;phpToString;
    }

    /**
     * Set the value of phpToString.
     * @param      v  Value to assign to phpToString.
     */
    public function setPhpToString($v)
    {
        $this-&gt;phpToString = $v;
    }</pre>
<p>Y tambien debemos adaptar la clase Database<br />
(<em>/Symfony1.2/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/database/model/Database.php</em>)</p>
<p>Un atributo $phpToString</p>
<pre>	private $phpToString;</pre>
<p>Cargamos los valores al objeto, entre ellos $this-&gt;phpToString</p>
<pre>	/**
	 * Sets up the Database object based on the attributes that were passed to loadFromXML().
	 * @see        parent::loadFromXML()
	 */
	protected function setupObject()
	{
		$this-&gt;name = $this-&gt;getAttribute("name");
		$this-&gt;phpToString = $this-&gt;getAttribute("phpToString");
		$this-&gt;pkg = $this-&gt;getAttribute("package");
		$this-&gt;baseClass = $this-&gt;getAttribute("baseClass");
		$this-&gt;basePeer = $this-&gt;getAttribute("basePeer");
		$this-&gt;defaultIdMethod = $this-&gt;getAttribute("defaultIdMethod", IDMethod::NATIVE);
		$this-&gt;defaultPhpNamingMethod = $this-&gt;getAttribute("defaultPhpNamingMethod", NameGenerator::CONV_METHOD_UNDERSCORE);
		$this-&gt;defaultTranslateMethod = $this-&gt;getAttribute("defaultTranslateMethod", Validator::TRANSLATE_NONE);
		$this-&gt;heavyIndexing = $this-&gt;booleanValue($this-&gt;getAttribute("heavyIndexing"));
	}</pre>
<p>Los Getter y Setter</p>
<pre>    /**
     * Get the value of phpToString.
     * @return     value of phpToString.
     */
    public function getPhpToString()
    {
        return $this-&gt;phpToString;
    }

    /**
     * Set the value of phpToString.
     * @param      v  Value to assign to phpToString.
     */
    public function setPhpToString($v)
    {
        $this-&gt;phpToString = $v;
    }</pre>
<p>Ahora el XML</p>
<pre>	/**
	 * @see        XMLElement::appendXml(DOMNode)
	 */
	public function appendXml(DOMNode $node)
	{
		$doc = ($node instanceof DOMDocument) ? $node : $node-&gt;ownerDocument;

		$dbNode = $node-&gt;appendChild($doc-&gt;createElement('database'));

		$dbNode-&gt;setAttribute('name', $this-&gt;name);

        if ($this-&gt;phpToString) {
            $dbNode-&gt;setAttribute('phpToString', $this-&gt;phpToString);
        }

		if ($this-&gt;pkg) {
			$dbNode-&gt;setAttribute('package', $this-&gt;pkg);
		}

		if ($this-&gt;defaultIdMethod) {
			$dbNode-&gt;setAttribute('defaultIdMethod', $this-&gt;defaultIdMethod);
		}

		if ($this-&gt;baseClass) {
			$dbNode-&gt;setAttribute('baseClass', $this-&gt;baseClass);
		}

		if ($this-&gt;basePeer) {
			$dbNode-&gt;setAttribute('basePeer', $this-&gt;basePeer);
		}

		if ($this-&gt;defaultPhpNamingMethod) {
			$dbNode-&gt;setAttribute('defaultPhpNamingMethod', $this-&gt;defaultPhpNamingMethod);
		}

		if ($this-&gt;defaultTranslateMethod) {
			$dbNode-&gt;setAttribute('defaultTranslateMethod', $this-&gt;defaultTranslateMethod);
		}

		/*

		FIXME - Before we can add support for domains in the schema, we need
		to have a method of the Column that indicates whether the column was mapped
		to a SPECIFIC domain (since Column-&gt;getDomain() will always return a Domain object)

		foreach ($this-&gt;domainMap as $domain) {
		$domain-&gt;appendXml($dbNode);
		}
		*/
		foreach ($this-&gt;vendorInfos as $vi) {
			$vi-&gt;appendXml($dbNode);
		}

		foreach ($this-&gt;tableList as $table) {
			$table-&gt;appendXml($dbNode);
		}

	}</pre>
<p>Con estas dos clases modificadas, estamos en condiciones de usar estos cambios para la clase OMBuilder que hereda de DataModelBuilder. Pero esta ultima clase no sera necesario modificarla. (<em>/Symfony1.2/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/builder/om/OMBuilder.php</em>). Solo hay que :</p>
<pre>    /**
     * Gets the field name for the magic method __toString.
     * @return     string
     */
    public function getPhpToString()
    {
        $phpToString = ($this-&gt;getTable()-&gt;getPhpToString() ? $this-&gt;getTable()-&gt;getPhpToString() : $this-&gt;getDatabase()-&gt;getPhpToString());
        if (!$phpToString) {
            $phpToString = false;
        }
        return $phpToString;
    }</pre>
<p>Como vimos la clase hija de la anterior OMBuilder, es PHP5ObjectBuilder.<br />
(<em>/Symfony1.2/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/classes/propel/engine/builder/om/php5/PHP5ObjectBuilder.php</em>)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2008/10/24/generando-el-modelo-a-mi-manera/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Prueba tus Aplicaciones</title>
		<link>http://blog.puentesdiaz.com.ar/2008/10/21/prueba-tus-aplicaciones/</link>
		<comments>http://blog.puentesdiaz.com.ar/2008/10/21/prueba-tus-aplicaciones/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 23:18:14 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Software Libre]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.puentesdiaz.com.ar/blog/2008/10/21/prueba-tus-aplicaciones/</guid>
		<description><![CDATA[Prueba tus Aplicaciones, es otro articulo de Fabien Potencier,creador del framework Symfony. Esta vez, se analiza las nuevas clases del framework para el testing. De mas esta decir que Fabien esta muy entusiasmado con estos tópicos Las clases son fáciles &#8230; <a href="http://blog.puentesdiaz.com.ar/2008/10/21/prueba-tus-aplicaciones/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Prueba tus Aplicaciones, es otro articulo de Fabien Potencier,creador del framework <a title="Symfony" target="_blank" href="http://www.symfony-project.org">Symfony</a>.</p>
<p>Esta vez, se analiza las nuevas clases del framework para el testing.<br />
De mas esta decir que Fabien esta muy entusiasmado con estos tópicos <img src='http://blog.puentesdiaz.com.ar/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Las clases son fáciles de usar.</p>
<p><a title="Prueba tus Aplicaciones" href="http://www.puentesdiaz.com.ar/symfony/prueba-tus-aplicaciones.php">Prueba tus Aplicaciones</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2008/10/21/prueba-tus-aplicaciones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mas sabor para tus formularios con algunos lindos widgets y validadores</title>
		<link>http://blog.puentesdiaz.com.ar/2008/10/19/mas-sabor-para-tus-formularios-con-algunos-lindos-widgets-y-validadores/</link>
		<comments>http://blog.puentesdiaz.com.ar/2008/10/19/mas-sabor-para-tus-formularios-con-algunos-lindos-widgets-y-validadores/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 18:36:01 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Software Libre]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.puentesdiaz.com.ar/blog/2008/10/19/mas-sabor-para-tus-formularios-con-algunos-lindos-widgets-y-validadores/</guid>
		<description><![CDATA[Mas sabor para tus formularios con algunos lindos widgets y validadores, es otro articulo de Fabien Potencier,creador del framework Symfony. En el mismo nos sigue mostrando varios trucos de sfFormExtraPlugin y el uso de ReCaptcha. Los métodos son muy sencillos &#8230; <a href="http://blog.puentesdiaz.com.ar/2008/10/19/mas-sabor-para-tus-formularios-con-algunos-lindos-widgets-y-validadores/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mas sabor para tus formularios con algunos lindos widgets y validadores, es otro articulo de Fabien Potencier,creador del framework <a target="_blank" title="Symfony" href="http://www.symfony-project.org">Symfony</a>.</p>
<p>En el mismo nos sigue mostrando varios trucos de <a target="_blank" title="sfFormExtraPlugin" href="http://www.symfony-project.org/plugins/sfFormExtraPlugin">sfFormExtraPlugin</a> y el uso de  <a href="http://recaptcha.net/">ReCaptcha</a>.<br />
Los métodos son muy sencillos e intuitivos.</p>
<p><a title="Symfony / Mas sabor para tus formularios con algunos lindos widgets y validadores" target="_blank" href="http://www.puentesdiaz.com.ar/symfony/Mas-sabor-para-tus-formularios-con-algunos-lindos-widgets-y-validadores.php">Mas sabor para tus formularios con algunos lindos widgets y validadores</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2008/10/19/mas-sabor-para-tus-formularios-con-algunos-lindos-widgets-y-validadores/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jugando con el Lenguaje</title>
		<link>http://blog.puentesdiaz.com.ar/2008/10/16/jugando-con-el-lenguaje/</link>
		<comments>http://blog.puentesdiaz.com.ar/2008/10/16/jugando-con-el-lenguaje/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 15:26:54 +0000</pubDate>
		<dc:creator>puentesdiaz</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Software Libre]]></category>
		<category><![CDATA[Symfony]]></category>

		<guid isPermaLink="false">http://www.puentesdiaz.com.ar/blog/2008/10/16/jugando-con-el-lenguaje/</guid>
		<description><![CDATA[Jugando con el Lenguaje o el Idioma, es otro post de Fabien Potencier,creador del framework Symfony. En el mismo nos muestra otra vez como jugar con la cultura del usuario de nuestro sitio web Los métodos son muy sencillos e &#8230; <a href="http://blog.puentesdiaz.com.ar/2008/10/16/jugando-con-el-lenguaje/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Jugando con el Lenguaje o el Idioma, es otro post de Fabien Potencier,creador del framework <a target="_blank" title="Symfony" href="http://www.symfony-project.org">Symfony</a>.</p>
<p>En el mismo nos muestra otra vez como jugar con la cultura del usuario de nuestro sitio web</p>
<p>Los métodos son muy sencillos e intuitivos.</p>
<p>Nuevamente los ARRAYs son participantes de este juego.A continuación el enlace al artículo traducido:</p>
<p><a title="Symfony / Jugando con el Lenguaje" target="_blank" href="http://www.puentesdiaz.com.ar/symfony/jugando-con-el-lenguaje.php">Jugando con el Lenguaje</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.puentesdiaz.com.ar/2008/10/16/jugando-con-el-lenguaje/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

