<?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>A typical Developer Blog</title>
	<atom:link href="http://blog.nevalon.de/en/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.nevalon.de</link>
	<description>Gordon Franke</description>
	<lastBuildDate>Mon, 14 Mar 2011 13:34:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How can i override user attribute in my functional test?</title>
		<link>http://blog.nevalon.de/en/wie-kann-ich-user-attribute-in-meinem-functional-test-uberschreiben-20110314</link>
		<comments>http://blog.nevalon.de/en/wie-kann-ich-user-attribute-in-meinem-functional-test-uberschreiben-20110314#comments</comments>
		<pubDate>Mon, 14 Mar 2011 13:34:02 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[functional test]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[sfBrowser]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=381</guid>
		<description><![CDATA[Some times your code depend on a user attribute, so you want set the user attribute in your functional test. The Problem is that the doCall method in the sfBrowser class rebuild the context and in the end calls theshutdown method from user and storage object to write the session data. So you must create [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Some times your code depend on a user attribute, so you want set the user attribute in your functional test.</p>
<p>The Problem is that the <em>doCall</em> method in the <em>sfBrowser</em> class rebuild the context and in the end calls the<em>shutdown</em> method from user and storage object to write the session data.</p>
<p>So you must create your own Browser class and override the <em>doCall</em> function and simple move the shutdown calls to the beginning.</p>
<p>Browser Class:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> myBrowser <span style="color: #000000; font-weight: bold;">extends</span> sfBrowser
<span style="color: #009900;">&#123;</span>
  <span style="color: #009933; font-style: italic;">/**
   * Calls a request to a uri.
   */</span>
  <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000000; font-weight: bold;">function</span> doCall<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// manually shutdown user to save current session data</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">context</span><span style="color: #009900;">&#41;</span> AND <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">context</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">context</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">shutdown</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">context</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStorage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">shutdown</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// recycle our context object</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">context</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getContext</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    sfConfig<span style="color: #339933;">::</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sf_test'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// we register a fake rendering filter</span>
    sfConfig<span style="color: #339933;">::</span><span style="color: #004000;">set</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sf_rendering_filter'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sfFakeRenderingFilter'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">resetCurrentException</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// dispatch our request</span>
    <span style="color: #990000;">ob_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">context</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getController</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dispatch</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$retval</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ob_get_clean</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// append retval to the response content</span>
    <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">context</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getResponse</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setContent</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$retval</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Test code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">include</span> <span style="color: #990000;">dirname</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">__FILE__</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'/../../bootstrap/functional.php'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$browser</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> sfTestFunctional<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> myBrowser<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span>
  <span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/site-one'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// override the session data</span>
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'key'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span>
  <span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/site-one'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/wie-kann-ich-user-attribute-in-meinem-functional-test-uberschreiben-20110314/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Symfony and doctrine compiled version</title>
		<link>http://blog.nevalon.de/en/symfony-und-die-kompilierte-version-von-doctrine-20110118</link>
		<comments>http://blog.nevalon.de/en/symfony-und-die-kompilierte-version-von-doctrine-20110118#comments</comments>
		<pubDate>Tue, 18 Jan 2011 16:26:17 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=375</guid>
		<description><![CDATA[(Deutsch) In a new symfony project i have tested the doctrine compiled version. since 1.3.7 symfony support this.

<a href="
http://www.symfony-project.org/blog/2010/09/22/symfony-1-3-7-1-4-7">http://www.symfony-project.org/blog/2010/09/22/symfony-1-3-7-1-4-7</a>

I have learned two things.

first when you compile doctrine use the --driver option. with mysql you can save ~15% file size.

Second use Doctrine_Core not Doctrine.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In a new symfony project i have tested the doctrine compiled version. since 1.3.7 symfony support this.</p>
<p><a href=" http://www.symfony-project.org/blog/2010/09/22/symfony-1-3-7-1-4-7">http://www.symfony-project.org/blog/2010/09/22/symfony-1-3-7-1-4-7</a></p>
<h2>I have learned two things</h2>
<p>first when you compile doctrine use the <em>&#8211;driver</em> option. with <em>mysql</em> you can save ~15% file size.</p>
<p>Second use Doctrine_Core not Doctrine. The class Doctrine is deprecated and not in the compiled file. So you get a fatal error.<br />
To fix the class name automatically see:<br />
<a title="Change from Doctrine to Doctrine_Core with one command" href="../en/wechseln-von-doctrine-to-doctrine_core-mit-einem-befehl-change-from-doctrine-to-doctrine_core-with-one-command-20091202">Change from Doctrine to Doctrine_Core with one command</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/symfony-und-die-kompilierte-version-von-doctrine-20110118/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple script to find missing translation strings</title>
		<link>http://blog.nevalon.de/en/simples-skript-zum-finden-fehlender-ubersetzungen-20100810</link>
		<comments>http://blog.nevalon.de/en/simples-skript-zum-finden-fehlender-ubersetzungen-20100810#comments</comments>
		<pubDate>Tue, 10 Aug 2010 12:01:10 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=369</guid>
		<description><![CDATA[No related posts. Related posts brought to you by Yet Another Related Posts Plugin.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><script src="http://gist.github.com/517132.js?file=symfony1_find_missing_translation_strings.php"></script></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/simples-skript-zum-finden-fehlender-ubersetzungen-20100810/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How can i use field credentials for symfony admin generator forms?</title>
		<link>http://blog.nevalon.de/en/wie-nutze-ich-die-rechteverwaltung-in-symfony-admin-generator-formularen-20100729</link>
		<comments>http://blog.nevalon.de/en/wie-nutze-ich-die-rechteverwaltung-in-symfony-admin-generator-formularen-20100729#comments</comments>
		<pubDate>Thu, 29 Jul 2010 14:25:36 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[guard]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=361</guid>
		<description><![CDATA[When you would restrict the display of a field or fieldset group on user credential. you must do the following 1. open the action class and add public function preExecute&#40;&#41; &#123; parent::preExecute&#40;&#41;; &#160; $this-&#62;configuration-&#62;setUser&#40;$this-&#62;getUser&#40;&#41;&#41;; &#125; 2. open the *GeneratorConfiguration class and add protected $user; &#160; public function setUser&#40;$user&#41; &#123; $this-&#62;user = $user; &#125; &#160; public [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>When you would restrict the display of a field or fieldset group on user credential. you must do the following</p>
<p>1. open the <em>action</em> class and add</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> preExecute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  parent<span style="color: #339933;">::</span><span style="color: #004000;">preExecute</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">configuration</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setUser</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>2. open the <em>*GeneratorConfiguration</em> class and add</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000088;">$user</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> setUser<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$user</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getUser<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getEditDisplay<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$fieldsets</span> <span style="color: #339933;">=</span> parent<span style="color: #339933;">::</span><span style="color: #004000;">getEditDisplay</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">hasCredential</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span>
      <span style="color: #000088;">$fieldsets</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Auth'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// field</span>
      <span style="color: #000088;">$fieldsets</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Rights'</span><span style="color: #009900;">&#93;</span>   <span style="color: #666666; font-style: italic;">// field group</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$fieldsets</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getNewDisplay<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #339933;">...</span> <span style="color: #666666; font-style: italic;">// see getEditDisplay</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getFormOptions<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getUser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>3. last remove the fields from the form, open the <em>*Form</em> class and add</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> configure<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #339933;">...</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getOption</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">hasCredential</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'is_super_admin'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'groups_list'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$this</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'permissions_list'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #339933;">...</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/wie-nutze-ich-die-rechteverwaltung-in-symfony-admin-generator-formularen-20100729/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How can i automatic add ids to my trans-unit nodes in my XML Xliff Tanslation files?</title>
		<link>http://blog.nevalon.de/en/wie-kann-ich-automatisch-ids-fur-meine-trans-units-in-meinen-xml-xliff-ubersetzungs-dateien-vergeben-how-can-i-automatic-add-ids-to-my-trans-unit-nodes-in-my-xml-xliff-tanslation-files-20100714</link>
		<comments>http://blog.nevalon.de/en/wie-kann-ich-automatisch-ids-fur-meine-trans-units-in-meinen-xml-xliff-ubersetzungs-dateien-vergeben-how-can-i-automatic-add-ids-to-my-trans-unit-nodes-in-my-xml-xliff-tanslation-files-20100714#comments</comments>
		<pubDate>Wed, 14 Jul 2010 11:01:49 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=353</guid>
		<description><![CDATA[When you validate you XML Xliff file you have often the problem that a trans-unit node has no or a already existing id. So i have wrote a small script for that problem. fix_id.php 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 &#60;?php &#160; $doc = new DOMDocument&#40;&#41;; [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>When you validate you XML Xliff file you have often the problem that a trans-unit node has no or a already existing id. So i have wrote a small script for that problem.</p>
<p>fix_id.php</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$doc</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMDocument<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$xpath</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DOMXPath<span style="color: #009900;">&#40;</span><span style="color: #000088;">$doc</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'//trans-unit'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$entries</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xpath</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$entries</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$entry</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$entry</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'id'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$i</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000088;">$doc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Execute the following command in your symfony1 root directory <img src='http://blog.nevalon.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> FILE <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">find</span> apps<span style="color: #000000; font-weight: bold;">/*/</span>i18n <span style="color: #660033;">-name</span> <span style="color: #000000; font-weight: bold;">*</span>\.xml<span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> php fix_id.php <span style="color: #007800;">$FILE</span>; <span style="color: #000000; font-weight: bold;">done</span>;</pre></div></div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/wie-kann-ich-automatisch-ids-fur-meine-trans-units-in-meinen-xml-xliff-ubersetzungs-dateien-vergeben-how-can-i-automatic-add-ids-to-my-trans-unit-nodes-in-my-xml-xliff-tanslation-files-20100714/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>GTUG Battle Hackathon</title>
		<link>http://blog.nevalon.de/en/gtug-battle-hackathon-20100304</link>
		<comments>http://blog.nevalon.de/en/gtug-battle-hackathon-20100304#comments</comments>
		<pubDate>Thu, 04 Mar 2010 12:58:26 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[chrome]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=335</guid>
		<description><![CDATA[The event was at google here in munich. On which project we actual work would anounced at 15. march. It would be a chrome plugin No related posts. Related posts brought to you by Yet Another Related Posts Plugin.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The event was at google here in munich. On which project we actual work would anounced at 15. march. It would be a chrome plugin <img src='http://blog.nevalon.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div id="attachment_337" class="wp-caption alignnone" style="width: 160px"><a href="http://blog.nevalon.de/files/2010/03/SDC19434.JPG"><img class="size-thumbnail wp-image-337" title="SDC19434" src="http://blog.nevalon.de/files/2010/03/SDC19434-150x150.jpg" alt="Google Battle Hackathon 2010" width="150" height="150" /></a><p class="wp-caption-text">Google Battle Hackathon 2010</p></div>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/gtug-battle-hackathon-20100304/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where can i get &#8220;Pro Git&#8221; book as pdf?</title>
		<link>http://blog.nevalon.de/en/woher-bekomme-ich-das-pro-git-buch-als-pdf-where-can-i-get-pro-git-book-as-pdf-20100208</link>
		<comments>http://blog.nevalon.de/en/woher-bekomme-ich-das-pro-git-buch-als-pdf-where-can-i-get-pro-git-book-as-pdf-20100208#comments</comments>
		<pubDate>Mon, 08 Feb 2010 11:49:12 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=323</guid>
		<description><![CDATA[First make step get the git repository git clone git://github.com/progit/progit.git when you use ubuntu you must install some packages sudo aptitude install ruby pandoc texlive-xetex texlive-latex-recommended then build the pdf in your preferred language. run this command from the latex folder ruby makepdf en No related posts. Related posts brought to you by Yet Another [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>First make step get the git repository</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>progit<span style="color: #000000; font-weight: bold;">/</span>progit.git</pre></div></div>

<p>when you use ubuntu you must install some packages</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ruby pandoc texlive-xetex texlive-latex-recommended</pre></div></div>

<p>then build the pdf in your preferred language. run this command from the latex folder</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ruby makepdf en</pre></div></div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/woher-bekomme-ich-das-pro-git-buch-als-pdf-where-can-i-get-pro-git-book-as-pdf-20100208/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How can i simple mark all required form fields in symfony 1.3?</title>
		<link>http://blog.nevalon.de/en/wie-kann-man-in-symfony-1-3-einfach-alle-formular-pflichtfelder-kennzeichnen-how-can-i-simple-mark-all-required-form-fields-in-symfony-1-3-20091212</link>
		<comments>http://blog.nevalon.de/en/wie-kann-man-in-symfony-1-3-einfach-alle-formular-pflichtfelder-kennzeichnen-how-can-i-simple-mark-all-required-form-fields-in-symfony-1-3-20091212#comments</comments>
		<pubDate>Sat, 12 Dec 2009 22:08:46 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[form]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=309</guid>
		<description><![CDATA[Create a function in your BaseForm class 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 public static function listenToPostConfigure&#40;$event&#41; &#123; $form = $event-&#62;getSubject&#40;&#41;; $widgetSchema = $form-&#62;getWidgetSchema&#40;&#41;; $validatorSchema = $form-&#62;getValidatorSchema&#40;&#41;; &#160; $fields = $form-&#62;getFormFieldSchema&#40;&#41;-&#62;getWidget&#40;&#41;-&#62;getFields&#40;&#41;; foreach &#40;$fields as $key =&#62; $object&#41; &#123; $label = $form-&#62;getFormFieldSchema&#40;&#41;-&#62;offsetGet&#40;$key&#41;-&#62;renderLabelName&#40;&#41;; if &#40;isset&#40;$validatorSchema&#91;$key&#93;&#41; [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Create a function in your <em>BaseForm</em> class</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> static <span style="color: #000000; font-weight: bold;">function</span> listenToPostConfigure<span style="color: #009900;">&#40;</span><span style="color: #000088;">$event</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$form</span>            <span style="color: #339933;">=</span> <span style="color: #000088;">$event</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSubject</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$widgetSchema</span>    <span style="color: #339933;">=</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getWidgetSchema</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$validatorSchema</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getValidatorSchema</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$fields</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFormFieldSchema</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getWidget</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFields</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$fields</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$object</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$label</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$form</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFormFieldSchema</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">offsetGet</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">renderLabelName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$validatorSchema</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> and <span style="color: #000088;">$validatorSchema</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getOption</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'required'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$title</span>  <span style="color: #339933;">=</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'_field_is_required'</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$label</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&lt;sup&gt;getFormFormatter()-&gt;translate($title) . '</span><span style="color: #0000ff;">&quot;&gt;*&lt;/sup&gt;';
    }
    <span style="color: #006699; font-weight: bold;">$widgetSchema-&gt;setLabel</span>(<span style="color: #006699; font-weight: bold;">$key</span>, <span style="color: #006699; font-weight: bold;">$label</span>);
  }
}</span></pre></td></tr></table></div>

<p>Add a listener to the <em>form.post_configure</em> event with your function</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$dispatcher</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getEventDispatcher</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$dispatcher</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">connect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'form.post_configure'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'BaseForm'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'listenToPostConfigure'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/wie-kann-man-in-symfony-1-3-einfach-alle-formular-pflichtfelder-kennzeichnen-how-can-i-simple-mark-all-required-form-fields-in-symfony-1-3-20091212/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How can i change the netbeans color schema to look like symfony documentations?</title>
		<link>http://blog.nevalon.de/en/wie-kann-ich-das-netbeans-farbschema-anpassen-um-auszusehen-wie-in-den-symfony-dokumentationen-how-can-i-change-the-netbeans-color-schema-to-look-like-symfony-documentations-20091212</link>
		<comments>http://blog.nevalon.de/en/wie-kann-ich-das-netbeans-farbschema-anpassen-um-auszusehen-wie-in-den-symfony-dokumentationen-how-can-i-change-the-netbeans-color-schema-to-look-like-symfony-documentations-20091212#comments</comments>
		<pubDate>Sat, 12 Dec 2009 21:45:47 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[symfony]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[netbeans]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=300</guid>
		<description><![CDATA[Simple extract this file into your netbeans-6.8/nb6.8 folder: SymfonyColorScheme.zip Thanks Ze Technology for the color schema http://www.ze-technology.com/2009/12/11/netbeans-aux-couleurs-de-symfony/ No related posts. Related posts brought to you by Yet Another Related Posts Plugin.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Simple extract this file into your <em>netbeans-6.8/nb6.8</em> folder:<br />
<a href='http://blog.nevalon.de/files/2009/12/SymfonyColorScheme.zip'>SymfonyColorScheme.zip</a></p>
<p>Thanks <strong>Ze Technology</strong> for the color schema</p>
<p>http://www.ze-technology.com/2009/12/11/netbeans-aux-couleurs-de-symfony/</p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/wie-kann-ich-das-netbeans-farbschema-anpassen-um-auszusehen-wie-in-den-symfony-dokumentationen-how-can-i-change-the-netbeans-color-schema-to-look-like-symfony-documentations-20091212/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change from Doctrine to Doctrine_Core with one command</title>
		<link>http://blog.nevalon.de/en/wechseln-von-doctrine-to-doctrine_core-mit-einem-befehl-change-from-doctrine-to-doctrine_core-with-one-command-20091202</link>
		<comments>http://blog.nevalon.de/en/wechseln-von-doctrine-to-doctrine_core-mit-einem-befehl-change-from-doctrine-to-doctrine_core-with-one-command-20091202#comments</comments>
		<pubDate>Wed, 02 Dec 2009 11:54:50 +0000</pubDate>
		<dc:creator>Gordon Franke</dc:creator>
				<category><![CDATA[doctrine]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://blog.nevalon.de/en/?p=277</guid>
		<description><![CDATA[To change all your code from Doctrine to Doctrine_Core you can use the following command 1 for fl in `find apps/ config/ lib/ test/ -name *.php`; do mv $fl $fl.old; sed 's/Doctrine::/Doctrine_Core::/g' $fl.old &#62; $fl; rm -f $fl.old; done When you have a plugin you can use this command 1 for fl in `find . [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>To change all your code from Doctrine to Doctrine_Core you can use the following command</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> fl <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">find</span> apps<span style="color: #000000; font-weight: bold;">/</span> config<span style="color: #000000; font-weight: bold;">/</span> lib<span style="color: #000000; font-weight: bold;">/</span> test<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-name</span> <span style="color: #000000; font-weight: bold;">*</span>.php<span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #007800;">$fl</span> <span style="color: #007800;">$fl</span>.old; <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/Doctrine::/Doctrine_Core::/g'</span> <span style="color: #007800;">$fl</span>.old <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$fl</span>; <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$fl</span>.old; <span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>When you have a plugin you can use this command</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> fl <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> <span style="color: #000000; font-weight: bold;">*</span>.php<span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #007800;">$fl</span> <span style="color: #007800;">$fl</span>.old; <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/Doctrine::/Doctrine_Core::/g'</span> <span style="color: #007800;">$fl</span>.old <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$fl</span>; <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$fl</span>.old; <span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.nevalon.de/en/wechseln-von-doctrine-to-doctrine_core-mit-einem-befehl-change-from-doctrine-to-doctrine_core-with-one-command-20091202/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

