<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Zendcasts Forum - ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
	<link rel="self" href="http://www.zendcasts.com/forum/feed/atom/topic/126/"/>
	<updated>2010-05-23T13:39:07Z</updated>
	<generator>PunBB</generator>
	<id>http://www.zendcasts.com/forum/topic/126/zc42-deep-integration-between-zend-and-doctrine-12/</id>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/868/#p868"/>
			<content type="html"><![CDATA[<p>I have a problem with generate-migrations-diff. <br /></p><div class="codebox"><pre><code>doctrine.data_fixtures_path     = APPLICATION_DATA_PATH &quot;/doctrine/fixtures&quot;
doctrine.sql_path         = APPLICATION_DATA_PATH &quot;/doctrine/sql&quot;
doctrine.migrations_path     = APPLICATION_DATA_PATH &quot;/doctrine/migrations&quot;
doctrine.yaml_schema_path     = APPLICATION_DATA_PATH &quot;/doctrine/schema.yml&quot;
doctrine.models_path         = APPLICATION_PATH &quot;/models&quot;
doctrine.generate_models_options.pearStyle            = true
doctrine.generate_models_options.generateTableClasses = false
doctrine.generate_models_options.generateBaseClasses  = true
doctrine.generate_models_options.baseClassPrefix      = &quot;Base_&quot;
doctrine.generate_models_options.baseClassesDirectory = 
doctrine.generate_models_options.classPrefixFiles     = false
doctrine.generate_models_options.classPrefix  = APPLICATION_NAMESPACE &quot;_Model_&quot;
doctrine.model_autoloading = 2</code></pre></div><p>classPrefix = &quot;Myapps_Model_&quot;</p><p>Doctrine_Core::isValidModelClass($class)<br />$class equal <strong>User</strong>, but not <strong>Myapps_Model_User</strong> and Doctrine_Core::isValidModelClass($class) function return false.</p><p>How to make it work?</p><br /><p>Zend Framework 1.10.4<br />Doctrine 1.2.2<br />PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:03:45)</p><p>Sorry for my EN.</p>]]></content>
			<author>
				<name><![CDATA[xams]]></name>
				<uri>http://www.zendcasts.com/forum/user/219/</uri>
			</author>
			<updated>2010-05-23T13:39:07Z</updated>
			<id>http://www.zendcasts.com/forum/post/868/#p868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/866/#p866"/>
			<content type="html"><![CDATA[<p>Hey dudes!</p><p>I got exactly the same error as jiewmeng up there...<br /></p><div class="codebox"><pre><code>D:\Projects\ZF\doctrine\application\scripts&gt;php.exe doctrine.php build-all-reload
build-all-reload - Are you sure you wish to drop your databases? (y/n)
y
build-all-reload - Successfully dropped database for connection named &#039;Doctrine&#039;
build-all-reload - Generated models successfully from YAML schema
build-all-reload - Successfully created database for connection named &#039;Doctrine&#039;
build-all-reload - Created tables successfully
PHP Fatal error:  Cannot redeclare class Model_Car in D:\Projects\ZF\doctrine\application\models\Car.php on line 16</code></pre></div><p>Anything to say about it? =/</p><p>Really thanks!</p>]]></content>
			<author>
				<name><![CDATA[kupper]]></name>
				<uri>http://www.zendcasts.com/forum/user/217/</uri>
			</author>
			<updated>2010-05-20T12:25:11Z</updated>
			<id>http://www.zendcasts.com/forum/post/866/#p866</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/836/#p836"/>
			<content type="html"><![CDATA[<p>Could someone explain a little bit more on how and why Doctrine behaves like it does in the video. I have set up Doctrine like Jon has in the video but Doctrine still generates a generated folder with a Base folder in it. I&#039;m trying to understand why it does that but can&#039;t figure it out.</p><p>I like my model classes named without the Model_ prefix:<br />doctrine.generate_models_options.classPrefix =</p><p>The generated folder now contains a Base folder with User.php and a Model_Base_User class name. Is it wise not to use the Model_ prefix? And why does Doctrine generate the generated folder with Base folder in it, and why are the Base class names like mentioned? I&#039;m of course not asking for concrete answers here, any suggestion is welcome :-)</p>]]></content>
			<author>
				<name><![CDATA[RobinZ]]></name>
				<uri>http://www.zendcasts.com/forum/user/204/</uri>
			</author>
			<updated>2010-05-01T15:15:28Z</updated>
			<id>http://www.zendcasts.com/forum/post/836/#p836</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/835/#p835"/>
			<content type="html"><![CDATA[<p>I can create an Instance of the Model (In Unit Test or Controller) but if i call a method of the Model i get and Exception saying &quot;Model not found&quot;.<br />[...]<br /><strong>Edit:</strong> Found the Problem. I used &quot;Model User&quot; without the Underscore in my Model itself, in the Doctrine Method Call:<br /></p><div class="codebox"><pre><code>public function findAll() {
    Doctrine_Query::create()-&gt;
        from(&#039;Model User u&#039;)-&gt;execute();
}</code></pre></div><p>But now it works with the Underscore attatched.</p>]]></content>
			<author>
				<name><![CDATA[as_lh]]></name>
				<uri>http://www.zendcasts.com/forum/user/203/</uri>
			</author>
			<updated>2010-04-30T13:31:08Z</updated>
			<id>http://www.zendcasts.com/forum/post/835/#p835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/607/#p607"/>
			<content type="html"><![CDATA[<p>I can confirm the &quot;A&quot; problem, and it is likely that the reason is as Jochen already explained. </p><p>If something is kinda buggy from the beginning (or feels like that) I avoid it at any cost (remember &quot;the broken window&quot; rule?:).</p><p>I experimented a bit with nORKys settings, I found that is most stable solution for me. I moved models directory to /lib/MyCoolApp/Model and as I have module based project I can sorta mimic the logic with classes like: MyCoolApp_Model_Default_User, MyCoolApp_Model_Admin_User ect. It is a bit more typing (no problem if you use NetBeans or ect.) but there are no perfect solutions, and _initAppAutoload is not needed any more. Also then I can rely on my custom lightweight autoloader. </p><p>Pushing entire Dotctrine&#039;s autoloader just to load sfYmal is not a best Idea if you are concerned about performance, you can include those few files in bootstrap or add to your loader:</p><div class="codebox"><pre><code>if (strpos($path, &#039;sfYaml&#039;) === 0) {
            include APPLICATION_ROOT . &#039;/lib/Doctrine/Parser/sfYaml/&#039; . $path . &#039;.php&#039;;
return true;
        }</code></pre></div><p>With that I have more robust solution, and no more strange problems with loading classes.</p>]]></content>
			<author>
				<name><![CDATA[e.s.t]]></name>
			</author>
			<updated>2010-02-04T12:51:09Z</updated>
			<id>http://www.zendcasts.com/forum/post/607/#p607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/591/#p591"/>
			<content type="html"><![CDATA[<p>@marsbomber:</p><p>I also use this approach. It makes it easier for me to keep things separated from each other.</p>]]></content>
			<author>
				<name><![CDATA[udo]]></name>
				<uri>http://www.zendcasts.com/forum/user/15/</uri>
			</author>
			<updated>2010-01-28T20:41:25Z</updated>
			<id>http://www.zendcasts.com/forum/post/591/#p591</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/590/#p590"/>
			<content type="html"><![CDATA[<p>Hi Udo! , <br />I think removing this line <br /></p><div class="codebox"><strong>PHP Code:</strong><pre><code class="php">Doctrine_Core::<span class="me2">loadModels</span><span class="br0">&#40;</span><span class="re0">$doctrineConfig</span><span class="br0">&#91;</span><span class="st0">'models_path'</span><span class="br0">&#93;</span><span class="br0">&#41;</span>;</code></pre></div><p>let the zend_autoloader load the models as a regular model and disable the functionality of the doctrine autoloader </p><p>Benjamin Eberlei aims to integrate Zend Framework and Doctrine 2 via Zend Tool.<br />Doctrine 2 CLI commands like Schema Tool should be integrated into the Zend<br />Tool Project context. This allows to setup the Doctrine 2 from withing<br />Zend Application within Zend Tool.<br />source :<br /><a href="http://framework.zend.com/wiki/display/ZFPROP/ZF+and+Doctrine2+Integration+-+Benjamin+Eberlei">http://framework.zend.com/wiki/display/ &#133; in+Eberlei</a></p><p>until that we will face a lot of crazy error ...... just be patient <br />hope that help <br />Thanks</p>]]></content>
			<author>
				<name><![CDATA[tawfekov]]></name>
				<uri>http://www.zendcasts.com/forum/user/14/</uri>
			</author>
			<updated>2010-01-28T20:41:12Z</updated>
			<id>http://www.zendcasts.com/forum/post/590/#p590</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/589/#p589"/>
			<content type="html"><![CDATA[<p>I noticed another issue. I have to remove the following line from Bootstrap.php to make it work:<br /></p><div class="codebox"><pre><code>Doctrine_Core::loadModels($doctrineConfig[&#039;models_path&#039;]);</code></pre></div><p>If I leave it, I get this when running<br /></p><div class="codebox"><pre><code>udos@ubuntu:/var/www/trailz.zf/application/scripts$ ./doctrine build-all-reload
PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP Fatal error:  Class &#039;Model_Base_Car&#039; not found in /var/www/trailz.zf/application/models/Car.php on line 14
PHP Stack trace:
PHP   1. {main}() /var/www/trailz.zf/application/scripts/doctrine:0
PHP   2. include() /var/www/trailz.zf/application/scripts/doctrine:4
PHP   3. Zend_Application_Bootstrap_BootstrapAbstract-&gt;bootstrap() /var/www/trailz.zf/application/scripts/doctrine.php:31
PHP   4. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_bootstrap() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:579
PHP   5. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_executeResource() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:622
PHP   6. Bootstrap-&gt;_initDoctrine() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:662
PHP   7. Doctrine_Core::loadModels() /var/www/trailz.zf/application/Bootstrap.php:32
PHP   8. require_once() /usr/local/lib/Doctrine/stable/1.2.1/lib/Doctrine/Core.php:664

Fatal error: Class &#039;Model_Base_Car&#039; not found in /var/www/trailz.zf/application/models/Car.php on line 14

Call Stack:
    0.0008     317496   1. {main}() /var/www/trailz.zf/application/scripts/doctrine:0
    0.0013     323968   2. include(&#039;/var/www/trailz.zf/application/scripts/doctrine.php&#039;) /var/www/trailz.zf/application/scripts/doctrine:4
    0.0209     819440   3. Zend_Application_Bootstrap_BootstrapAbstract-&gt;bootstrap() /var/www/trailz.zf/application/scripts/doctrine.php:31
    0.0209     819440   4. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_bootstrap() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:579
    0.0209     819440   5. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_executeResource() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:622
    0.0212     820128   6. Bootstrap-&gt;_initDoctrine() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:662
    0.0283    1163804   7. Doctrine_Core::loadModels() /var/www/trailz.zf/application/Bootstrap.php:32
    0.0289    1194992   8. require_once(&#039;/var/www/trailz.zf/application/models/Car.php&#039;) /usr/local/lib/Doctrine/stable/1.2.1/lib/Doctrine/Core.php:664</code></pre></div><p>Same thing for phpunit:<br /></p><div class="codebox"><pre><code>udos@ubuntu:/var/www/trailz.zf/tests$ phpunit
PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
PHP Fatal error:  Class &#039;Model_Base_Car&#039; not found in /var/www/trailz.zf/application/models/Car.php on line 14
PHP Stack trace:
PHP   1. {main}() /usr/local/zend/bin/phpunit:0
PHP   2. PHPUnit_TextUI_Command::main() /usr/local/zend/bin/phpunit:54
PHP   3. PHPUnit_TextUI_Command-&gt;run() /usr/local/zend/share/pear/PHPUnit/TextUI/Command.php:146
PHP   4. PHPUnit_TextUI_Command-&gt;handleArguments() /usr/local/zend/share/pear/PHPUnit/TextUI/Command.php:155
PHP   5. PHPUnit_Util_Fileloader::load() /usr/local/zend/share/pear/PHPUnit/TextUI/Command.php:785
PHP   6. include_once() /usr/local/zend/share/pear/PHPUnit/Util/Fileloader.php:110
PHP   7. Zend_Application_Bootstrap_BootstrapAbstract-&gt;bootstrap() /var/www/trailz.zf/tests/application/bootstrap.php:41
PHP   8. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_bootstrap() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:579
PHP   9. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_executeResource() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:622
PHP  10. Bootstrap-&gt;_initDoctrine() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:662
PHP  11. Doctrine_Core::loadModels() /var/www/trailz.zf/application/Bootstrap.php:32
PHP  12. require_once() /usr/local/lib/Doctrine/stable/1.2.1/lib/Doctrine/Core.php:664

Fatal error: Class &#039;Model_Base_Car&#039; not found in /var/www/trailz.zf/application/models/Car.php on line 14

Call Stack:
    0.0006     319792   1. {main}() /usr/local/zend/bin/phpunit:0
    0.0828    3215584   2. PHPUnit_TextUI_Command::main() /usr/local/zend/bin/phpunit:54
    0.0828    3215920   3. PHPUnit_TextUI_Command-&gt;run() /usr/local/zend/share/pear/PHPUnit/TextUI/Command.php:146
    0.0828    3215920   4. PHPUnit_TextUI_Command-&gt;handleArguments() /usr/local/zend/share/pear/PHPUnit/TextUI/Command.php:155
    0.0840    3219152   5. PHPUnit_Util_Fileloader::load() /usr/local/zend/share/pear/PHPUnit/TextUI/Command.php:785
    0.0842    3226032   6. include_once(&#039;/var/www/trailz.zf/tests/application/bootstrap.php&#039;) /usr/local/zend/share/pear/PHPUnit/Util/Fileloader.php:110
    0.1167    4495016   7. Zend_Application_Bootstrap_BootstrapAbstract-&gt;bootstrap() /var/www/trailz.zf/tests/application/bootstrap.php:41
    0.1167    4495016   8. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_bootstrap() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:579
    0.1167    4495016   9. Zend_Application_Bootstrap_BootstrapAbstract-&gt;_executeResource() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:622
    0.1170    4495704  10. Bootstrap-&gt;_initDoctrine() /usr/local/lib/ZF/stable/1.9.7/library/Zend/Application/Bootstrap/BootstrapAbstract.php:662
    0.1241    4839352  11. Doctrine_Core::loadModels() /var/www/trailz.zf/application/Bootstrap.php:32
    0.1258    4884880  12. require_once(&#039;/var/www/trailz.zf/application/models/Car.php&#039;) /usr/local/lib/Doctrine/stable/1.2.1/lib/Doctrine/Core.php:664</code></pre></div><p>Did someone notice this also?</p>]]></content>
			<author>
				<name><![CDATA[udo]]></name>
				<uri>http://www.zendcasts.com/forum/user/15/</uri>
			</author>
			<updated>2010-01-28T20:21:59Z</updated>
			<id>http://www.zendcasts.com/forum/post/589/#p589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/588/#p588"/>
			<content type="html"><![CDATA[<p>ok, found it. <img src="http://www.zendcasts.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> but I won&#039;t tell... it&#039;s embarassing... <img src="http://www.zendcasts.com/forum/img/smilies/roll.png" width="15" height="15" alt="roll" /></p><p><strong>Update:</strong><br />Made up my mind. <img src="http://www.zendcasts.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /> The problem was the following.</p><p>Remember my posted code from <a href="http://www.zendcasts.com/forum/post/581/#p581">http://www.zendcasts.com/forum/post/581/#p581</a>?<br /></p><div class="codebox"><pre><code>options:
  type: INNODB
  collate: utf8_general_ci
  charset: utf8
detect_relations: true</code></pre></div><p>I indented <strong>detect_relations: true</strong> by 2 spaces because I thought it is an <strong>options</strong> property (which it&#039;s not):<br /></p><div class="codebox"><pre><code>options:
  type: INNODB
  collate: utf8_general_ci
  charset: utf8
  detect_relations: true</code></pre></div><p>And the problems started...</p><p>Finally I removed the spaces in front of <strong>detect_relations: true</strong> and everything runs smoothly...</p><p>Lesson learned: <strong>Really be careful with spaces in YAML files!</strong> No kidding... <img src="http://www.zendcasts.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p><strong>Update:</strong><br /><strong>detect_relations</strong> is a parameter of the doctrine <a href="http://www.doctrine-project.org/documentation/manual/1_2/en/yaml-schema-files#features-examples:global-schema-information">Global Schema Information</a>.</p>]]></content>
			<author>
				<name><![CDATA[udo]]></name>
				<uri>http://www.zendcasts.com/forum/user/15/</uri>
			</author>
			<updated>2010-01-28T18:10:56Z</updated>
			<id>http://www.zendcasts.com/forum/post/588/#p588</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/587/#p587"/>
			<content type="html"><![CDATA[<p>correct. when I use the detect_relation option I get this error at the end:</p><div class="codebox"><pre><code>udos@ubuntu:/var/www/trailz.zf/application/scripts$ ./doctrine build-all-reload
PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
build-all-reload - Are you sure you wish to drop your databases? (y/n)
y
build-all-reload - Successfully dropped database for connection named &#039;doctrine&#039;
build-all-reload - Generated models successfully from YAML schema
build-all-reload - Successfully created database for connection named &#039;doctrine&#039;
build-all-reload - Created tables successfully
Unknown method Model_User::setCar</code></pre></div><p>Similar with running phpunit:<br /></p><div class="codebox"><pre><code>udos@ubuntu:/var/www/trailz.zf/tests$ phpunit
PHP Warning:  Xdebug MUST be loaded as a Zend extension in Unknown on line 0
build-all-reload - Successfully dropped database for connection named &#039;doctrine&#039;
build-all-reload - Generated models successfully from YAML schema
build-all-reload - Successfully created database for connection named &#039;doctrine&#039;
build-all-reload - Created tables successfully
Unknown method Model_User::setCar
PHPUnit 3.4.9 by Sebastian Bergmann.

...F

Time: 2 seconds, Memory: 13.50Mb

There was 1 failure:

1) UserTest::testCanCreateUser
Failed asserting that &lt;boolean:false&gt; is true.

/var/www/trailz.zf/tests/application/models/UserTest.php:17

FAILURES!
Tests: 4, Assertions: 20, Failures: 1.

Generating code coverage report, this may take a moment.</code></pre></div><p>Executing the scripts with your schema file (<a href="http://code.google.com/p/zendcasts/source/browse/trunk/zc42-deep-integration-doctrine-1.2/application/configs/schema.yml">link</a>) returns no errors.</p><p>It&#039;s probably related to the namespace, but so far I was not able to figure it out.</p><p><strong>Note:</strong><br />To make it easier to test this issue, I added this to application.ini:<br /></p><div class="codebox"><pre><code>; schema file (autodetect relations)
;doctrine.yaml_schema_path        = APPLICATION_PATH &quot;/../doctrine/dev/schema-detrel.yml&quot;
; schema file (relations specified by user)
doctrine.yaml_schema_path        = APPLICATION_PATH &quot;/../doctrine/dev/schema.yml&quot;</code></pre></div><p>to easily switch between the schema files.</p>]]></content>
			<author>
				<name><![CDATA[udo]]></name>
				<uri>http://www.zendcasts.com/forum/user/15/</uri>
			</author>
			<updated>2010-01-28T09:02:30Z</updated>
			<id>http://www.zendcasts.com/forum/post/587/#p587</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/586/#p586"/>
			<content type="html"><![CDATA[<p>detect relations is a great feature of Doctrine... I always forget to use it. Are you saying that this flag causes the model generation to fail when you&#039;re loading models with the Model_ prefix?</p>]]></content>
			<author>
				<name><![CDATA[Jon Lebensold]]></name>
				<uri>http://www.zendcasts.com/forum/user/3/</uri>
			</author>
			<updated>2010-01-28T03:19:57Z</updated>
			<id>http://www.zendcasts.com/forum/post/586/#p586</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/584/#p584"/>
			<content type="html"><![CDATA[<p>hey jon,</p><p>you where asking for ways of simplifying things...</p><p>there is good news which I posted here: <a href="http://www.zendcasts.com/forum/post/581/#p581">http://www.zendcasts.com/forum/post/581/#p581</a></p><p>the bad news: It worked &quot;the old way&quot; but with the &quot;deep integration&quot; it doesn&#039;t work anymore.</p><p>so far I was not able to get it back to work but it shows some simplification potential. at least to schema files.</p><p>maybe someone else is able to figure it out.</p>]]></content>
			<author>
				<name><![CDATA[udo]]></name>
				<uri>http://www.zendcasts.com/forum/user/15/</uri>
			</author>
			<updated>2010-01-27T22:11:49Z</updated>
			<id>http://www.zendcasts.com/forum/post/584/#p584</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/556/#p556"/>
			<content type="html"><![CDATA[<p>i got<br /></p><div class="codebox"><pre><code>D:\Projects\ZF\doctrine\application\scripts&gt;php.exe doctrine.php build-all-reload
build-all-reload - Are you sure you wish to drop your databases? (y/n)
y
build-all-reload - Successfully dropped database for connection named &#039;Doctrine&#039;
build-all-reload - Generated models successfully from YAML schema
build-all-reload - Successfully created database for connection named &#039;Doctrine&#039;
build-all-reload - Created tables successfully
PHP Fatal error:  Cannot redeclare class Model_Car in D:\Projects\ZF\doctrine\application\models\Car.php on line 16</code></pre></div><p>after trying to generate my models etc </p><p>my Car.php class seems ok </p><p>class Model_Car extends Model_Base_Car {}</p>]]></content>
			<author>
				<name><![CDATA[jiewmeng]]></name>
			</author>
			<updated>2010-01-17T12:16:00Z</updated>
			<id>http://www.zendcasts.com/forum/post/556/#p556</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/555/#p555"/>
			<content type="html"><![CDATA[<p>Hi marsbomber&nbsp; ,<br />thanks for sharing your idea , its seems to be nice <br />I promise to take a detailed look of it ASAP <br />and i am look forward to hear form you </p><p>thanks again</p>]]></content>
			<author>
				<name><![CDATA[tawfekov]]></name>
				<uri>http://www.zendcasts.com/forum/user/14/</uri>
			</author>
			<updated>2010-01-15T23:14:14Z</updated>
			<id>http://www.zendcasts.com/forum/post/555/#p555</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: ZC42 – Deep Integration between Zend and Doctrine 1.2]]></title>
			<link rel="alternate" href="http://www.zendcasts.com/forum/post/554/#p554"/>
			<content type="html"><![CDATA[<p>Hi Jon, </p><p>You did it again! Another great zendcast. I&#039;ve been looking for ways to implement ZF and Doctrine 1.2 for a while, and your very first tutorial on this topic gave me a lot of useful ideas.</p><p>I made myself a setup base on a merge from your &quot;Writing Doctrine Unit Tests with Zend_Test&quot; and&nbsp; Eric Leclerc&#039;s zfdebugdoctrine project (<a href="http://github.com/danceric/zfdebugdoctrine">http://github.com/danceric/zfdebugdoctrine</a>).</p><p>Just want to share it with people who are interested. It can be found on github (<a href="http://github.com/marsbomber/zf-with-doctrine">http://github.com/marsbomber/zf-with-doctrine</a>). Only major difference is that the doctrine command line script and any doctrine related stuff, like the schema yml file, the generated sql file, data fixture, etc, are placed out of the application directory. In a way I found it make my life a bit easier, when I deploy the application.</p><p>Can&#039;t wait for your next episode!</p>]]></content>
			<author>
				<name><![CDATA[marsbomber]]></name>
				<uri>http://www.zendcasts.com/forum/user/12/</uri>
			</author>
			<updated>2010-01-15T08:22:38Z</updated>
			<id>http://www.zendcasts.com/forum/post/554/#p554</id>
		</entry>
</feed>
