Tuesday, April 9, 2013

Re: cake bake User - Error: Table facebooks for model Facebook was not found in datasource default.

It looks like this is pretty specific to your application. Do you have a Facebook model? Is there a table for it in the db?


On Mon, Apr 8, 2013 at 9:11 PM, Nathan Pierce <heliusdesign@gmail.com> wrote:
RootSHH [~/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}

I've tried a clean install of 2.3.2 and 2.3.1. Nothing works. Any ideas? I'm trying to do the ACL tutorials and I can't get past this. Anyone got an idea?

--
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.
 
 

--
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.
 
 

No comments: