Re: Bug: using multiple models in controller

2006-07-22 Thread invincible

i'm already running java.

plain Debian doesn't have a multiverse (just contib non-free)

You do have to run unstable (sid) but this is pretty stable on
the supported platforms.

The bug is still open.  Maybe i'll ticket it.

In the mean time i've fixed another bug and ticketed it.
https://trac.cakephp.org/ticket/1168

anywho thanks for the help.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Bug: using multiple models in controller

2006-07-22 Thread invincible

Sun changed it's licence.  CEO's orders to make it more linux friendly.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Bug: using multiple models in controller

2006-07-21 Thread John Zimmerman [gmail]
I believe if you add the multiverse onto the end of any line of your sources.list that has universe and then do an 'aptitude search java' you will get the sun packages again. Just run 'aptitude install packagename'.
I did this with Ubuntu and it works fine.Should be similar with a straight Debian distro.On 7/17/06, invincible 
[EMAIL PROTECTED] wrote:I've noticed.Message passed.Debian doesn't seem to have a problem with the java licence anymore
(thanks to Sun).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: Bug: using multiple models in controller

2006-07-17 Thread invincible

I've noticed.  Message passed.

Debian doesn't seem to have a problem with the java licence anymore
(thanks to Sun).


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Bug: using multiple models in controller

2006-07-16 Thread invincible

I've just again looked into cake/libs/controller/controller.php

Controller::$modelClass (not modelName) is used in GenerateFieldNames()
and cleanUpFields().

Tough Controller::ConstructClasses populates the array
Controller::$modelNames[]
(from Controller::$uses).

the 'bug' seems to be concentrated here.

Can i ticket this or is it the way it is supposed to work?
anyone?
Thanks in advance.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Bug: using multiple models in controller

2006-07-16 Thread John Zimmerman [gmail]
You might want to jump on the IRC channel and see if you can chat PHPNut up quick.If not then I would probably open a ticket and if nothing else they will explain a reason for it to work the way it does.
On 7/16/06, invincible [EMAIL PROTECTED] wrote:
I've just again looked into cake/libs/controller/controller.phpController::$modelClass (not modelName) is used in GenerateFieldNames()and cleanUpFields().Tough Controller::ConstructClasses populates the array
Controller::$modelNames[](from Controller::$uses).the 'bug' seems to be concentrated here.Can i ticket this or is it the way it is supposed to work?anyone?Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Re: Bug: using multiple models in controller

2006-07-16 Thread invincible

Thanks man.

I've found that GenerateFieldNames() is only used in scaffold and
bake.php.

The only real bugger seems to be cleanUpFields().

K i'll have to install a ircclient on debian here then.
And it is weekend of course (just came back from diner myself).

Thanks again.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: Bug: using multiple models in controller

2006-07-16 Thread John Zimmerman [gmail]
http://irc.cakephp.org/irc.htmlIf you have a java plugin installed for your web browser you can just go to the link above and login to the irc channel via the java applet.
On 7/16/06, invincible [EMAIL PROTECTED] wrote:
Thanks man.I've found that GenerateFieldNames() is only used in scaffold andbake.php.The only real bugger seems to be cleanUpFields().K i'll have to install a ircclient on debian here then.
And it is weekend of course (just came back from diner myself).Thanks again.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


Bug: using multiple models in controller

2006-07-15 Thread invincible

A controller is tied to its model.
A controller can't really update models that don't share the
controller's name.
This seem to be a not yet implemented feature in CakePHP.


Problem:
Controller::$uses makes other models accessible but other methods don't
take these models into account.
This due to the use of Controller::$modelName wich is initialised to
the controllers name.
(I tought requestAction() solved my problem, but there isn't a way to
pass data to it.)


Affects:
invalidate(), cleanUpFields(), ... (a search inside controller for
'modelName')

Solution:
setModelInUse();
or take into account the models in $uses.
(requestAction($url, $extra, $formdata); )

Has anyone else encoutered these problems?
It doesn't seem workable.  $uses already takes into account more
models.

Thanks in advance for the positive response.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---