{"record":{"id":"60a96992a5d4d560","repo":"phalcon/cphalcon","slug":"bind-type-requires-an-array-in-placeholder-name","errorCode":null,"errorMessage":"Bind type requires an array in placeholder: {name}","messagePattern":"Bind type requires an array in placeholder: (.+?)","errorType":"exception","errorClass":"Phalcon\\Mvc\\Model\\Query\\Exceptions\\BindTypeRequiresArray","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Model/Query.zep","lineNumber":2181,"sourceCode":"                            case \"null\":\n                                let this->bindTypes[name] = Column::BIND_PARAM_NULL;\n\n                                let exprReturn = [\n                                    \"type\":  \"placeholder\",\n                                    \"value\": \":\" . name\n                                ];\n\n                                break;\n\n                            case \"array\":\n                            case \"array-str\":\n                            case \"array-int\":\n                                if unlikely !fetch bind, this->bindParams[name] {\n                                    throw new BindValueRequired(name);\n                                }\n\n                                if unlikely typeof bind != \"array\" {\n                                    throw new BindTypeRequiresArray(name);\n                                }\n\n                                if unlikely empty bind {\n                                    throw new EmptyArrayPlaceholderValue(name);\n                                }\n\n                                let exprReturn = [\n                                    \"type\":     \"placeholder\",\n                                    \"value\":    \":\" . name,\n                                    \"rawValue\": name,\n                                    \"times\":    count(bind)\n                                ];\n\n                                break;\n\n                            default:\n                                throw new UnknownBindType(bindType);\n                        }","sourceCodeStart":2163,"sourceCodeEnd":2199,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Model/Query.zep#L2163-L2199","documentation":"Error \"Bind type requires an array in placeholder: {name}\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Model/Query.zep:2181 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}