We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm using Dev tools 1.0.1 and having an issue with tables name, not sure if it's from my end. I was able to generate Models.
Example: php scripts/phalcon.php scaffold --table-name User User is the table name but the pdo is looking for user.
User
user
Error below (I also tried command line)
Thanks
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'phalcon.user' doesn't exist #0 [internal function]: PDO->query('DESCRIBE user') #1 [internal function]: Phalcon\Db\Adapter\Pdo->query('DESCRIBE user', NULL, NULL) #2 [internal function]: Phalcon\Db\Adapter->fetchAll('DESCRIBE user', 3) #3 [internal function]: Phalcon\Db\Adapter\Pdo\Mysql->describeColumns('user', NULL) #4 [internal function]: Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData(Object(User), Object(Phalcon\DI\FactoryDefault)) #5 [internal function]: Phalcon\Mvc\Model\MetaData->_initialize(Object(User), 'user-user', 'user', NULL) #6 [internal function]: Phalcon\Mvc\Model\MetaData->readMetaDataIndex(Object(User), 0)
The text was updated successfully, but these errors were encountered:
My bad, Had the models already created.
Sorry, something went wrong.
No branches or pull requests
Hi,
I'm using Dev tools 1.0.1 and having an issue with tables name, not sure if it's from my end.
I was able to generate Models.
Example:
php scripts/phalcon.php scaffold --table-name User
User
is the table name but the pdo is looking foruser
.Error below (I also tried command line)
Thanks
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'phalcon.user' doesn't exist
#0 [internal function]: PDO->query('DESCRIBE
user
')#1 [internal function]: Phalcon\Db\Adapter\Pdo->query('DESCRIBE
user
', NULL, NULL)#2 [internal function]: Phalcon\Db\Adapter->fetchAll('DESCRIBE
user
', 3)#3 [internal function]: Phalcon\Db\Adapter\Pdo\Mysql->describeColumns('user', NULL)
#4 [internal function]: Phalcon\Mvc\Model\MetaData\Strategy\Introspection->getMetaData(Object(User), Object(Phalcon\DI\FactoryDefault))
#5 [internal function]: Phalcon\Mvc\Model\MetaData->_initialize(Object(User), 'user-user', 'user', NULL)
#6 [internal function]: Phalcon\Mvc\Model\MetaData->readMetaDataIndex(Object(User), 0)
The text was updated successfully, but these errors were encountered: