does your users' table have a column called facebook_id ? it could be that it is looking for a facebooks table during the association part. I tend to name my column something like fabookid. remember that cake bake is assuming you are abiding by cake standards.
On Tuesday, April 9, 2013 12:48:54 AM UTC-4, Jeremy Burns wrote: > > Do you have a field called facebook_id? > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > On 9 Apr 2013, at 01:52, Nathan Pierce <[email protected] <javascript:>> > wrote: > > I'm really perplexed. I'm following the ACL guide > :HERE<http://book.cakephp.org/2.0/en/tutorials-and-examples/simple-acl-controlled-application/simple-acl-controlled-application.html> > and > I've run into a snag. > > SSHROOT [~/public_html]# cake bake User > > Welcome to CakePHP v2.3.2 Console > --------------------------------------------------------------- > App : app > Path: /home/learning/public_html/app/ > --------------------------------------------------------------- > Interactive Bake Shell > --------------------------------------------------------------- > [D]atabase Configuration > [M]odel > [V]iew > [C]ontroller > [P]roject > [F]ixture > [T]est case > [Q]uit > What would you like to Bake? (D/M/V/C/P/F/T/Q) > > V > Error: Table facebooks for model Facebook was not found in datasource > default. > #0 /home/learning/public_html/lib/Cake/Model/Model.php(3237): > Model->setSource('facebooks') > #1 /home/learning/public_html/lib/Cake/Model/Model.php(1319): > Model->getDataSource() > #2 /home/learning/public_html/lib/Cake/Model/Model.php(1402): > Model->schema() > #3 /home/learning/public_html/lib/Cake/Model/Model.php(1390): > Model->hasField('title', false) > #4 /home/learning/public_html/lib/Cake/Model/Model.php(879): > Model->hasField(Array) > #5 > /home/learning/public_html/lib/Cake/Console/Command/Task/ViewTask.php(460): > Model->__get('displayField') > #6 > /home/learning/public_html/lib/Cake/Console/Command/Task/ViewTask.php(285): > ViewTask->_associations(Object(User)) > #7 > /home/learning/public_html/lib/Cake/Console/Command/Task/ViewTask.php(120): > ViewTask->_loadController() > #8 /home/learning/public_html/lib/Cake/Console/Command/BakeShell.php(111): > ViewTask->execute() > #9 /home/learning/public_html/lib/Cake/Console/Shell.php(392): > BakeShell->main() > #10 /home/learning/public_html/lib/Cake/Console/ShellDispatcher.php(200): > Shell->runCommand('User', Array) > #11 /home/learning/public_html/lib/Cake/Console/ShellDispatcher.php(68): > ShellDispatcher->dispatch() > #12 /home/learning/public_html/lib/Cake/Console/cake.php(44): > ShellDispatcher::run(Array) > #13 {main} > > *derps a little* > > This is happening in both 2.3.2 and 2.3.1. I don't have a table > facebooks.. Why would I? I have users as a table, and I've followed the ACL > to-a-T. I did a search in all files with the word facebook and > didn't find anything but the docs. I've searched google wildly and also the > group here... What am I missing? > > > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected]<javascript:> > . > Visit this group at http://groups.google.com/group/cake-php?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
