Final Class Yiisoft\Db\Pgsql\Column\BinaryColumn
| Inheritance | Yiisoft\ |
|---|
Public Methods
| Method | Description | Defined By |
|---|---|---|
| phpTypecast() | Yiisoft\ |
Method Details
| public \ | ||
| $value | mixed | |
public function phpTypecast(mixed $value): StringableStream|string|null
{
if (is_string($value) && str_starts_with($value, '\x' )) {
/** @var string */
return hex2bin(substr($value, 2));
}
return parent::phpTypecast($value);
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.