S
S
Shuma22017-11-15 23:24:02
Database
Shuma2, 2017-11-15 23:24:02

Table object (model) in PHPStrom > PHPdoc?

Hello.
Is it possible to create annotations through phpdoc for an object (table model) that does not have a class in the project?
Phpstorm is good with on-the-fly databases.
For example DBIterator returned a table object with 3 properties

$obj = DB::get_objects("SELECT * FROM this_table");

And here the $obj variable is an array of this_table table objects .
Object properties = table columns .
So, is it possible, without creating a class in the project (albeit empty), to specify through phpdoc which table this object is?
@property is not an option because it still needs a class.
Thank you all for your help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question