# |
Mar 7th 2018, 18:39 |
rafael.junqueira.sant |
it actually shows, found it |
# |
Mar 7th 2018, 18:39 |
lorenzo |
somehow what they show was not clear at all to me :) |
# |
Mar 7th 2018, 18:39 |
rafael.junqueira.sant |
ohhh |
# |
Mar 7th 2018, 18:39 |
lorenzo |
funny that you show me that it does savant, I’ve been complaining about the lack of those in sentry |
# |
Mar 7th 2018, 18:39 |
savant |
bbl |
# |
Mar 7th 2018, 18:39 |
savant |
plus it shows the code by default |
# |
Mar 7th 2018, 18:39 |
rafael.junqueira.sant |
@lorenzo unfortunately, when I click the frames they only show code, not the arguments passed |
# |
Mar 7th 2018, 18:38 |
savant |
and the `+` marks make it easy to note that the section is expandable |
# |
Mar 7th 2018, 18:38 |
savant |
if you click “show more”: https://cl.ly/1W0L1I0W032C |
# |
Mar 7th 2018, 18:38 |
savant |
https://cl.ly/1j332R472642 |
# |
Mar 7th 2018, 18:37 |
savant |
it shows data actually |
# |
Mar 7th 2018, 18:37 |
lorenzo |
:) |
# |
Mar 7th 2018, 18:37 |
lorenzo |
the ui form sentry does not show arguments |
# |
Mar 7th 2018, 18:37 |
savant |
maybe the ui from sentry? |
# |
Mar 7th 2018, 18:37 |
lorenzo |
any suggestions? |
# |
Mar 7th 2018, 18:36 |
savant |
(and maybe we can make that more clear…) |
# |
Mar 7th 2018, 18:36 |
savant |
woah thats neat if true |
# |
Mar 7th 2018, 18:36 |
lorenzo |
so you can closer see where the error is |
# |
Mar 7th 2018, 18:36 |
lorenzo |
if you click on each of the frames in the left column in that error page, I think you will be able to see the arguments passed to the functions |
# |
Mar 7th 2018, 18:35 |
lorenzo |
@rafael.junqueira.sant that may happen when trying to save objects or array values in the database in columns that are integers |
# |
Mar 7th 2018, 18:30 |
rafael.junqueira.sant |
I'm clueless |
# |
Mar 7th 2018, 18:29 |
rafael.junqueira.sant |
Hi, I'm receiving the "Cannot convert value to integer" error while adding a new entry to the database https://pasteboard.co/HaPBZTq.jpg this is the dd() of the patch entity: https://pastebin.com/SQpUgMuB |
# |
Mar 7th 2018, 16:11 |
jeremyharris |
haha, sometimes :) |
# |
Mar 7th 2018, 16:11 |
popperz0r |
thanks once again @jeremyharris second day in a round to save my day :P |
# |
Mar 7th 2018, 16:10 |
popperz0r |
ill take a look at utility classes |
# |
Mar 7th 2018, 16:07 |
jeremyharris |
I find it a bit strange that the controller layer needs to know that, but a utility class would do what you want |
# |
Mar 7th 2018, 16:07 |
jeremyharris |
as an example in the core, look at the TextHelper and how it basically proxies the utility Text class |
# |
Mar 7th 2018, 16:07 |
popperz0r |
its an all app related, so i can be able to generate a classname from wherever i want, its just a string to match my css |
# |
Mar 7th 2018, 16:06 |
jeremyharris |
or, create a basic service/utility class that the model/component/whatever else share |
# |
Mar 7th 2018, 16:06 |
jeremyharris |
if it’s something that is table/model related, move the logic into the table and call the table method from the component |
# |
Mar 7th 2018, 16:05 |
popperz0r |
What do you guys advise? |
# |
Mar 7th 2018, 16:05 |
popperz0r |
but looks like im not suposed to call components inside models |
# |
Mar 7th 2018, 16:05 |
popperz0r |
Now i want to call it to auto-add a class on a model beforesave |
# |
Mar 7th 2018, 16:05 |
popperz0r |
I created a component to generate random html classes, this could be used for anything |
# |
Mar 7th 2018, 16:04 |
popperz0r |
Hi! I have an architecture problem here! :P |
# |
Mar 7th 2018, 15:30 |
neon1024 |
Actually, nevermind. I should refactor the script out of the element. |
# |
Mar 7th 2018, 15:30 |
neon1024 |
Anyone know how to have an element which is included multiple times, only append to the script block once? |
# |
Mar 7th 2018, 15:29 |
charolastra |
but the PagesController doesn't pass them on. but thinking of it the PagesController might not be suitable for that |
# |
Mar 7th 2018, 15:28 |
roel |
@neon1024 Ok, I'll look into that :slightly_smiling_face:, Thanks |
# |
Mar 7th 2018, 15:28 |
neon1024 |
charolastra: $this->redirect() takes an array url, so you can pass whatever url options you want |
# |
Mar 7th 2018, 15:27 |
neon1024 |
No harm in that @roel but do think about if you’d be better served with a Behavior instead |