Z/doctrine docs - #136
Z/doctrine docs#136zanbaldwin wants to merge 2 commits into
Conversation
Greptile SummaryThe Doctrine documentation adds compatibility and query-parameter binding guidance. One non-blocking documentation issue remains: the raw-binary binding example does not work for every supported DBAL release and should be qualified before publication. Confidence Score: 4/5This change is safe to merge, but the documentation should be corrected to avoid giving supported DBAL 2.3 users a class-not-found error. The review identified one verified, non-blocking documentation compatibility problem and no higher-impact or security issues. Files Needing Attention: docs/08-doctrine.md:94 needs DBAL-version-specific raw binary binding guidance.
|
| the Symfony configuration shown above). The type accepts an IP object or a | ||
| protocol string, converts it to the stored binary form, and binds it as binary | ||
| on every database platform. If you must bind raw bytes yourself, pass | ||
| `Doctrine\DBAL\ParameterType::BINARY` as the third argument instead. |
There was a problem hiding this comment.
The page declares support for DBAL ^2.3, but this example tells every reader to use Doctrine\DBAL\ParameterType::BINARY. That class does not exist in DBAL 2.3, so supported users following the raw-byte example receive a class-not-found error. Qualify this by DBAL version and show \PDO::PARAM_LOB as the DBAL 2-compatible binding type. This is a non-blocking documentation concern, but correcting it prevents users of a supported dependency version from receiving a runtime error.
Artifacts
- Downloads the exact upstream Doctrine DBAL 2.3.0 source tag and checks for ParameterType and the binary binding implementation, ending with the DBAL 2.3 compatibility check.
- Captured execution from `/home/user/repo` shows no ParameterType or BINARY declaration in DBAL 2.3.0 and shows BlobType returning PDO::PARAM_LOB, establishing the correct DBAL-2-compatible binding argument.
abbb977 to
9c14040
Compare
No description provided.