Thursday, March 26, 2015

Cake3 - Blog Tutorial Part 3 error founds

Hi,

I am getting below error while executing "bin/cake bake model Categories"


ubuntu@ubuntu:/var/www/html/cake3blog$ bin/cake bake model Categories

Welcome to CakePHP v3.0.0 Console
---------------------------------------------------------------
App : src
Path: /var/www/html/cake3blog/src/
---------------------------------------------------------------
One moment while associations are detected.
Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog_cake3_db.categories' doesn't exist in [/var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/Collection.php, line 130]
2015-03-27 04:24:32 Error: [Cake\Database\Exception] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'blog_cake3_db.categories' doesn't exist
Stack Trace:
#0 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/Collection.php(96): Cake\Database\Schema\Collection->_reflect('Column', 'categories', Array, Object(Cake\Database\Schema\Table))
#1 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Database/Schema/CachedCollection.php(65): Cake\Database\Schema\Collection->describe('categories', Array)
#2 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ORM/Table.php(422): Cake\Database\Schema\CachedCollection->describe('categories')
#3 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/ORM/Table.php(498): Cake\ORM\Table->schema()
#4 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(192): Cake\ORM\Table->primaryKey()
#5 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(109): Bake\Shell\Task\ModelTask->getAssociations(Object(Cake\ORM\Table))
#6 /var/www/html/cake3blog/vendor/cakephp/bake/src/Shell/Task/ModelTask.php(95): Bake\Shell\Task\ModelTask->bake('Categories')
#7 [internal function]: Bake\Shell\Task\ModelTask->main('Categories')
#8 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/Shell.php(387): call_user_func_array(Array, Array)
#9 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/Shell.php(382): Cake\Console\Shell->runCommand(Array, false)
#10 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(200): Cake\Console\Shell->runCommand(Array, true)
#11 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(171): Cake\Console\ShellDispatcher->_dispatch()
#12 /var/www/html/cake3blog/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php(122): Cake\Console\ShellDispatcher->dispatch()
#13 /var/www/html/cake3blog/bin/cake.php(20): Cake\Console\ShellDispatcher::run(Array)
#14 {main}

--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: