DDC-3535: Allow binding Parameter value object to statements, removing the need for explicit value and type passing #4348

Open
opened 2026-01-22 14:40:01 +01:00 by admin · 1 comment
Owner

Originally created by @doctrinebot on GitHub (Jan 24, 2015).

Originally assigned to: @Ocramius on GitHub.

Jira issue originally created by user @ocramius:

Originally created by @doctrinebot on GitHub (Jan 24, 2015). Originally assigned to: @Ocramius on GitHub. Jira issue originally created by user @ocramius:
Author
Owner

@doctrinebot commented on GitHub (Jan 24, 2015):

Comment created by @ocramius:

We currently have a lot of locations in the code where we use list($values, $types) = $this->computeParameters(); (pseudo-code).

This leads to a lot of code duplication and complexity.

Maybe a Parameter VO may be used instead, or a ParameterCollection with a fixed $types and a mutable $values, and with minimal internal validation.

@doctrinebot commented on GitHub (Jan 24, 2015): Comment created by @ocramius: We currently have a lot of locations in the code where we use `list($values, $types) = $this->computeParameters();` (pseudo-code). This leads to a lot of code duplication and complexity. Maybe a `Parameter` VO may be used instead, or a `ParameterCollection` with a fixed `$types` and a mutable `$values`, and with minimal internal validation.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4348