docs icon indicating copy to clipboard operation
docs copied to clipboard

\Phalcon\Db documentation issues

Open slothentic opened this issue 4 years ago • 0 comments

I recently upgraded to 4.0.4 and have noticed a number of errors in the documentation here: https://docs.phalcon.io/4.0/en/db-layer#create-1

Most importantly, the second parameter schema for all db operations is null in the documentation, but that causes a fatal error.

For example:

PHP Fatal error:  Uncaught TypeError: Argument 2 passed to Phalcon\\Db\\Adapter\\AbstractAdapter::modifyColumn() must be of the type string, null given

I was able to fix this by simply passing "" an empty string as the second param.

slothentic avatar Apr 01 '20 13:04 slothentic