Re: Cake Bake User -- Error: Table facebooks for model Facebook was not found in datasource default.
Do you have a field called facebook_id?
Jeremy Burns
http://www.classoutfit.com
On 9 Apr 2013, at 01:52, Nathan Pierce <heliusdesign@gmail.com> wrote:
I'm really perplexed. I'm following the ACL guide :HERE and I've run into a snag.SSHROOT [~/public_html]# cake bake UserWelcome to CakePHP v2.3.2 Console---------------------------------------------------------------App : appPath: /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]uitWhat would you like to Bake? (D/M/V/C/P/F/T/Q)> VError: 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 cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home