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

rex_yform_manager_dataset magic properties #436

Closed
staabm opened this issue Mar 23, 2023 · 2 comments · Fixed by #444
Closed

rex_yform_manager_dataset magic properties #436

staabm opened this issue Mar 23, 2023 · 2 comments · Fixed by #444

Comments

@staabm
Copy link
Member

staabm commented Mar 23, 2023

Feature description / Feature Beschreibung
rex_yform_manager_dataset implementiert magic getter/setter

können wir erkennen welche properties ein objekt hat sodass wir probleme wie

		-
			message: "#^Access to an undefined property Model\\\\News\\:\\:\\$image\\.$#"
			count: 1
			path: ../../../../src/addons/project/lib/Model/News.php

		-
			message: "#^Access to an undefined property Model\\\\News\\:\\:\\$publish_date\\.$#"
			count: 3
			path: ../../../../src/addons/project/lib/Model/News.php

abstellen können?

mögliche lösung: https://phpstan.org/developing-extensions/class-reflection-extensions

@staabm
Copy link
Member Author

staabm commented Mar 23, 2023

@gharlan hier ein anderer yform use-case den ich aus dem kaffeesatz der redaxo.org baseline gelesen hab.
macht das für dich sinn? hast du ideen wie ich ermitteln könnte welche properties welche dataset klasse magisch bereitstellt?

@gharlan
Copy link
Member

gharlan commented Mar 24, 2023

Da die Magic-Getter ja über getValue gehen, ist es letztlich das Gleiche wie #410, denke ich.
Also wenn das andere Ticket gelöst wäre, wüsstest du hier auch, welche magic Properties es gibt.

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

Successfully merging a pull request may close this issue.

2 participants