![]() |
Hi guys,
I might have a pretty similar problem, hence I decided to hijack this thread. Disclaimer right upfront: I am talking about proprietary company code, so I need to pay attention to not leak to much information. I will still try to provide as much info as possible. Let's say I have Cart Entity and I have a Quote Entity, and I want to iterate all of the Quotes inside a Cart to see which one is active. So I foreach through the Quotes in the Cart, and on every one of them call PHP Code: $quote->__get('is_current') The call to __get calls into the system/Entity/Entity magic method, which then calls PHP Code: $this->castAs(...) PHP Code: $this->dataCaster This is where the rock hits the bird and the application dies due to $this->dataCaster being uninitialized - what I cannot understand given that this should have been initialized in the constructor of Entity. Any clue what I might be doing wrong? |
Messages In This Thread |
DataCaster not working - by ozornick - 05-05-2024, 07:14 AM
RE: DataCaster not working - by kenjis - 05-05-2024, 04:50 PM
RE: DataCaster not working - by ozornick - 05-06-2024, 01:19 AM
RE: DataCaster not working - by kenjis - 05-06-2024, 01:38 AM
RE: DataCaster not working - by ozornick - 05-06-2024, 02:20 AM
RE: DataCaster not working - by kenjis - 05-06-2024, 03:16 AM
RE: DataCaster not working - by Thomas Meschke - 06-13-2024, 06:44 AM
|