-
-
Notifications
You must be signed in to change notification settings - Fork 62
Maximum function nesting level of '512' reached, aborting! #119
Comments
What type of attributes does your storable event have? I've run into a similar issue when passing a full Carbon instance. You need to serialize those kind of attributes, in case of Carbon simply by using |
Wow - that did the trick. Ok - that's going to be hard for me, if i really want to use the projector on all my models... |
Any clue why this is happening? I saw in the source of StoredEvent that there is a full Carbon instance, too... In my Model i store a "date_of_absence" which is a Carbon instane... |
That's likely because your |
Well, Spatie's StoredEvent model extends the default Eloquent model, so in theory, that should work. You could also create your own custom StoredEvent model. |
My PortalBaseModel extends Elqouent Model and adds a Cachable Trait... Shouldn't be a problem. |
Tried it without my BaseModel - same result.. |
It doesn't even matter if you cast a date as date:Y-m-d ... |
I'm not sure where things go wrong for you. With a date column present in Without that column being present in There's a difference between casting dates in the StoredEvent model and models that get serialized for the event_properties column in it (e.g. your Absence model). |
I really don't know why it's not working on my side... My Model:
The Projector:
The Event:
In MY Controller:
foreach ($dates as $date) {
|
Hi jetwes, did you solve the problem? |
I'd be happy to take a look at it if either one of you could set up a demo repo. |
Unfortunately i hadn't the time in the last weeks to investiagte further - so i stopped using the package for the moment... |
I guess the problem is in the serialization/deserialization. I opened another issue here: #126 |
I set up the event-projector in my local environment - just for one model for testing purposes. When i create a new entry in tinker everything works fine. However - if i try it in my application i get this error:
Maximum function nesting level of '512' reached, aborting!
Any clues?
The text was updated successfully, but these errors were encountered: