Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YOrm: $dataset->getValue() optional mit rex_type::cast() behandeln, Casting ermöglichen #1530

Open
alxndr-w opened this issue Sep 9, 2024 · 0 comments

Comments

@alxndr-w
Copy link
Contributor

alxndr-w commented Sep 9, 2024

public function getValue(string $key)
{
if ('id' === $key) {
return $this->id;
}
if (!$this->dataLoaded) {
$this->loadData();
}
return $this->data[$key];
}

Ermöglicht auch das Casten von Werten direkt über die getValue-Methode für Datasets, die nicht über eine eigene Model Class verfügen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant