buzzedword-oss/r-astoria-games — Issue #1: Cannot create new user on demand
Author: buzzedword
Created: 2012-01-11 02:29:24+00:00
State: open
Labels: Database

Running into an issue when calling the "createAccount" method through the API. Using PHP-ActiveRecord.

Fatal error: Uncaught exception 'ActiveRecord\DatabaseException' with message '42S02, 1146, Table 'heroku_ef28174c46fd722.users' doesn't exist' in /app/www/bin/php-activerecord/lib/Connection.php:276
Stack trace:
#0 /app/www/bin/php-activerecord/lib/adapters/MysqlAdapter.php(25): ActiveRecord\Connection->query('SHOW COLUMNS FR...')
#1 /app/www/bin/php-activerecord/lib/Connection.php(217): ActiveRecord\MysqlAdapter->query_column_info('`Users`')
#2 /app/www/bin/php-activerecord/lib/Table.php(358): ActiveRecord\Connection->columns('`Users`')
#3 /app/www/bin/php-activerecord/lib/Table.php(85): ActiveRecord\Table->get_meta_data()
#4 /app/www/bin/php-activerecord/lib/Table.php(61): ActiveRecord\Table->__construct('User')
#5 /app/www/bin/php-activerecord/lib/Model.php(725): ActiveRecord\Table::load('User')
#6 /app/www/bin/php-activerecord/lib/Model.php(353): ActiveRecord\Model::table()
#7 /app/www/interop.php(57): ActiveRecord\Model->__construct()
#8 /app/www/interop.php(83): interop_start('createAccount', Array, Array)
#9 {main in /app/www/bin/php-activerecord/lib/Connection.php on line 276