Skip to content
New issue

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

Phalcon\Mvc\Model\MetaData::readMetaData (Phalcon\Mvc\ModelInterface $model) do not return columns comments #544

Closed
3axap4eHko opened this issue Apr 12, 2013 · 3 comments

Comments

@3axap4eHko
Copy link

Phalcon\Mvc\Model\MetaData::readMetaData (Phalcon\Mvc\ModelInterface $model) do not return columns comments.
And PHQL do not understand "SHOW FULL COLUMNS FROM table_name;"
Syntax error, unexpected token IDENTIFIER(SHOW), near to ' FULL COLUMNS FROM table_name'

@phalcon
Copy link
Collaborator

phalcon commented Apr 14, 2013

You can use:

$this->db->query("SHOW FULL COLUMNS FROM table_name");

@3axap4eHko
Copy link
Author

what is instance of "db" property?

@phalcon
Copy link
Collaborator

phalcon commented Apr 16, 2013

Is the 'db' service, you can directly access your database if you need to get specific database-related data as the comments, in this case

@phalcon phalcon closed this as completed Apr 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant