# |
Jul 13th 2018, 12:22 |
steinkel |
let me check ... |
# |
Jul 13th 2018, 12:22 |
steinkel |
actually @josbeir I remember a similar issue |
# |
Jul 13th 2018, 12:22 |
josbeir |
it doesn't allow serialization and throws an exception about it |
# |
Jul 13th 2018, 12:22 |
admad |
@josbeir if someone wants to make a PR for it sure, currently I am not interested in spending time mitigating problems cause by core defaults :slightly_smiling_face: |
# |
Jul 13th 2018, 12:22 |
steinkel |
you'll get benefit if your route processing is slow, or you have many routes |
# |
Jul 13th 2018, 12:21 |
josbeir |
its actually a class (amazon aws) that is causing an issue |
# |
Jul 13th 2018, 12:21 |
steinkel |
right |
# |
Jul 13th 2018, 12:21 |
steinkel |
I mean, if some other middleware serialization is a problem |
# |
Jul 13th 2018, 12:21 |
josbeir |
..or just disable route caching :P |
# |
Jul 13th 2018, 12:21 |
steinkel |
that was my first try when dealing with that |
# |
Jul 13th 2018, 12:20 |
josbeir |
i'd rather use built in stuff for that |
# |
Jul 13th 2018, 12:20 |
steinkel |
you can use the same approach and cache the RouteCollection manually, inside your routes.php file |
# |
Jul 13th 2018, 12:19 |
josbeir |
maybe when passing the server stuff as a callable and implement some serializable logic |
# |
Jul 13th 2018, 12:17 |
josbeir |
yeah its not an easy thing to fix |
# |
Jul 13th 2018, 12:14 |
admad |
we have have numerous tickets about it causing problems when you have unserializable stuff in your middleware. Don't see what i can do in my plugin. |
# |
Jul 13th 2018, 12:13 |
josbeir |
its enabled by default in the app skeleton |
# |
Jul 13th 2018, 12:13 |
josbeir |
not a fan ? |
# |
Jul 13th 2018, 12:12 |
admad |
@josbeir i haven't used route caching |
# |
Jul 13th 2018, 09:15 |
josbeir |
(the s3 class doesn't like serialization) |
# |
Jul 13th 2018, 09:15 |
josbeir |
it kind of clashes when you enable route caching on the routing middleware :P |
# |
Jul 13th 2018, 09:14 |
josbeir |
psst @admad have you tried using S3 flysystem adapter with your glide plugin? |
# |
Jul 13th 2018, 08:56 |
josbeir |
i best use afterRules then |
# |
Jul 13th 2018, 08:56 |
josbeir |
right |
# |
Jul 13th 2018, 08:49 |
lorenzo |
validation is triggered by the marshaller, not by save() |
# |
Jul 13th 2018, 08:49 |
lorenzo |
no that is not normal |
# |
Jul 13th 2018, 08:39 |
josbeir |
@lorenzo i'm probably confused, didnt had my coffee yet but is it normal that (in ES) beforeSave triggers before validation ? |
# |
Jul 13th 2018, 08:17 |
magiq |
since exception has message and return false(stoping event) not |
# |
Jul 13th 2018, 08:16 |
magiq |
I think advantage of exception is clearer error text handling |
# |
Jul 13th 2018, 08:15 |
magiq |
I got action that dispatch event before saving object. What is the best option, throw exception in event to prevent saving or return false and check isStopped event method ? |
# |
Jul 13th 2018, 03:48 |
hmic |
e.g. person, person.company opposed to person, person.company.role - without saving company |
# |
Jul 13th 2018, 03:47 |
hmic |
humbba12: i suppose deelpy nested means you are saving each level, distnat means you are not saving all levels of nesting inbetween |
# |
Jul 13th 2018, 01:12 |
humbba12 |
I was reading the "saving data" documentation and in the saving associations section I read "You can define save distant or deeply nested associations by using dot notation:" so my question is what is the difference between distant and deeply nested associations? |
# |
Jul 12th 2018, 21:25 |
ricksaccous |
how do i set it up so my Authenticate object works instead? |
# |
Jul 12th 2018, 21:25 |
ricksaccous |
I'm trying to get a different class to Authenticate the form than FormAuthenticate |
# |
Jul 12th 2018, 20:58 |
dereuromark |
Long time since I made a tutorial. Maybe someone wants to proofread it? https://www.dereuromark.de/2018/07/12/tutorial-cakephp-tagging/ |
# |
Jul 12th 2018, 20:57 |
ricksaccous |
nevermind i got it, was overthinking it |
# |
Jul 12th 2018, 20:53 |
ricksaccous |
also the directory structure is UslUsers > src > Auth > SubAuth.php |
# |
Jul 12th 2018, 20:53 |
ricksaccous |
how do i reference that in plugin syntax? |
# |
Jul 12th 2018, 20:52 |
ricksaccous |
class SubAuth |
# |
Jul 12th 2018, 20:52 |
ricksaccous |
I have auth in a plugin with namespace UslUsers\Auth; |
# |
Jul 12th 2018, 20:29 |
ricksaccous |
I haven't really used allowMethod |