<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum CakePHP.org.pl - belongsTo w pluginach]]></title>
	<link rel="self" href="http://forum.cakephp.org.pl/feed/atom/topic/116/"/>
	<updated>2009-11-30T12:38:20Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.cakephp.org.pl/topic/116/belongsto-w-pluginach/</id>
		<entry>
			<title type="html"><![CDATA[Odp: belongsTo w pluginach]]></title>
			<link rel="alternate" href="http://forum.cakephp.org.pl/post/533/#p533"/>
			<content type="html"><![CDATA[<p>Plugin: Forum</p><p>class Post extends ForumAppModel {\<br /> ...<br /> var $belongsTo = array(&quot;Forum.Topic&quot;);<br />}</p>]]></content>
			<author>
				<name><![CDATA[id02009]]></name>
				<uri>http://forum.cakephp.org.pl/user/199/</uri>
			</author>
			<updated>2009-11-30T12:38:20Z</updated>
			<id>http://forum.cakephp.org.pl/post/533/#p533</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[belongsTo w pluginach]]></title>
			<link rel="alternate" href="http://forum.cakephp.org.pl/post/532/#p532"/>
			<content type="html"><![CDATA[<p>Witam </p><p>Mam&nbsp; problem ze zwiazkami miedzy modelami pluginu. Potrzebuje użyć zwiazku belongsTo, ale nie chce mi to wogole działac ;/<br />Znalazlem takie cos<br /></p><div class="codebox"><pre><code>&lt;?php

App::import(&#039;Model&#039;, &#039;ShopProducer&#039;);

class ShopProduct extends AppModel {

    var $name = &#039;ShopProduct&#039;;
    
    var $belongsTo = array(
        &#039;ShopProducer&#039; =&gt; array(
            &#039;className&#039; =&gt; &#039;ShopProducer&#039;
        )
    );
    
}</code></pre></div><p>ale to tez nie dziala ;/<br />Bede wdzieczny za jakakolwiek pomoc</p>]]></content>
			<author>
				<name><![CDATA[suleks]]></name>
				<uri>http://forum.cakephp.org.pl/user/242/</uri>
			</author>
			<updated>2009-11-27T13:35:31Z</updated>
			<id>http://forum.cakephp.org.pl/post/532/#p532</id>
		</entry>
</feed>
