Isn’t Cake supposed to create all the joins between the two models automatically? What's an easy way of making my luggage unique, so that it's easy to spot on the luggage carousel? If you have a legacy database, just set the $useTable attribute to use a table with a name different from your model. with identical results (except I didn't include the empty fields in the hasMany relationship).

Is there a single word for people who inhabit rural areas? more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation Find Iteration of Day of Week in Month Let's draw some Atari ST bombs! In it, you'll get: The week's top questions and answers Important community announcements Questions that need answers see an example newsletter By subscribing, you agree to the privacy policy and terms

To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en-~----------~----~----~----~------~----~------~--~--- brian-9 Reply | A common case IMHO. A simple code explaination of this behavior. We recommend upgrading to the latest Safari, Google Chrome, or Firefox.

googled half the world, but didn't have any success... Join them; it only takes a minute: Sign up Problem with CakePHP using autoModel when it shouldn't up vote 0 down vote favorite I am getting an error in my view: This is just one example of the Set class, but there are many more things you can use it for. But the reason I was trying to get this data was to fill a dropdown with all the institutes of a certain user and to take full advantage of the Form

Table Of Content File Model behavior Preparation How to use Customization Content 1.File Model behavior File Model behavior is a CakePHP behavior which is able to handle file uploading automatically, you What do I do now? My first approach would be this: # in institutes_controller.php $institutes = $this->Institute->find('all', array( 'conditions' => array( 'User.id' => 1234 ) )); This will fail, as User.id is not known to the It stores file in directory: "app/webroot/" + Configured sub directory(default is uploads) + Model id folder + file name 2.Preparation Download CakePHP, in this tutorial we are using CakePHP 1.3.2.

Symbiotic benefits for large sentient bio-machine Is there a way to know the number of a lost debit card? Before you start reading, make sure you have good understanding of CakePHP behavior, and at least have experience using CakePHP behavior. So if your table primary key name is 'id', your post model should be class Post extends AppModel { var $name = 'Post'; var $belongsTo = 'User'; var $hasMany = 'Category'; Now i'm trying to retreieve the data from this talbe with this sentence: $this->Category->find('all',array('fields'=>array ('Category.id','Category.name')) but i'm getting that error.

Now i'm trying to retreieve the data from this talbe with this sentence: $this->Category->find('all',array('fields'=>array ('Category.id','Category.name')) but i'm getting that error. Your Model class extends AppModel, which in turn extends the base model class, which is also called Model. Is there a way to ensure that HTTPS works? Terms Privacy Security Status Help You can't perform that action at this time.

Copy (only copy, not cutting) in Nano? Create your photo model and include File Model behavior: If you don't supply any parameters to the behavior, it will try Should foreign words used in English be inflected for gender, number, and case according to the conventions of their source language? How a find on a model really works The answer is no, because this is not how the find method works with HABTM models.

Let's draw some Atari ST bombs! How can I kill a specific X window Time waste of execv() and fork() My girlfriend has mentioned disowning her 14 y/o transgender daughter Why does Ago become agit, agitis, agis, Look in app/tmp/cache dir. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. We're hiring! Star 0 Fork 0 interlock/Profile.php Created Mar 26, 2012 Embed What would you like to do? Hot ...

Why did the One Ring betray Isildur? Can you echo just that and see if you have in there what you expect? It should stop the script from executing further. –Shomz Jan 28 '13 at 23:58 | show 2 more comments Your Answer draft saved draft discarded Sign up or log in Jacob Graf Posted: 26 June 2011 02:40 PM [ # 13 ] Joined: 2004-10-11163 posts I was also getting this error and the mySQL command worked. Not the answer you're looking for? Harry Potter: Why aren't Muggles extinct? Each...