# |
Aug 12th 2019, 20:59 |
latenal |
I’ve done it in `buildRules` |
# |
Aug 12th 2019, 20:31 |
ricksaccous |
hmmmm |
# |
Aug 12th 2019, 20:31 |
ricksaccous |
i mean evaluate conditionally |
# |
Aug 12th 2019, 20:30 |
ricksaccous |
the entity doesn't seem to be passed into "context" |
# |
Aug 12th 2019, 20:30 |
ricksaccous |
rather than the request data |
# |
Aug 12th 2019, 20:30 |
ricksaccous |
also what's the best way to deal with a situation where the data i want to evaluate is in the entity |
# |
Aug 12th 2019, 20:18 |
ricksaccous |
is this evil and if so what's a good way to avoid this, lol |
# |
Aug 12th 2019, 20:17 |
slackebot1 |
<ricksaccous> |
# |
Aug 12th 2019, 20:01 |
latenal |
ok, thanks |
# |
Aug 12th 2019, 20:00 |
ricksaccous |
however you see fit i suppose |
# |
Aug 12th 2019, 19:57 |
latenal |
preg_replace? |
# |
Aug 12th 2019, 19:56 |
latenal |
how do I do that? |
# |
Aug 12th 2019, 19:56 |
ricksaccous |
that's prob one of the only things you'll have to escape i believe, like conditions and places where the param can have special keywords that have unintended consequences |
# |
Aug 12th 2019, 19:55 |
latenal |
I am afraid, the sql will look like `title LIKE '%some%'` |
# |
Aug 12th 2019, 19:54 |
latenal |
and even if `$title = ‘some%’; |
# |
Aug 12th 2019, 19:53 |
latenal |
so will it work if I use this: `$query->where(['title LIKE' => '%' . $title]);`? |
# |
Aug 12th 2019, 19:52 |
ricksaccous |
what's the best way to achieve this validation wise |
# |
Aug 12th 2019, 19:52 |
ricksaccous |
suppose i want to pop an error in a related model based on the parent model's context |
# |
Aug 12th 2019, 19:50 |
diego182 |
quote identifiers |
# |
Aug 12th 2019, 19:50 |
ricksaccous |
even then, the ORM offers other options |
# |
Aug 12th 2019, 19:49 |
ricksaccous |
the orm uses binded params so you don't have to do that, unless you are using the ORM in a manner where your fields are on the left of the [ $fieldHere => 1] where clause |
# |
Aug 12th 2019, 19:49 |
challgren |
The ORM does that for you |
# |
Aug 12th 2019, 19:49 |
diego182 |
theres no need for that |
# |
Aug 12th 2019, 19:48 |
latenal |
Hey guys, how do you escape var before using it in ORM? I am referring to things like “mysqli_real_escape”? |
# |
Aug 12th 2019, 19:34 |
Guest7181 |
hello, I am trying to use the ldap identifier to authenticate the user with the orm resolver to resolve the identity based on the username used for ldap. I am having trouble getting this to work with what is in the book about Indentity Resolvers. Any advice would be appreciated |
# |
Aug 12th 2019, 17:05 |
jotpe |
Thanks @admad, seems to work |
# |
Aug 12th 2019, 17:02 |
admad |
@jotpe use request->getAttribute('identity') instead |
# |
Aug 12th 2019, 16:53 |
jotpe |
Any suggestions? |
# |
Aug 12th 2019, 16:52 |
jotpe |
My Application.php implements `getAuthenticationService()` and `getAuthorizationService()` like described in the docs |
# |
Aug 12th 2019, 16:51 |
jotpe |
After Installing the Authorization Plugin i get the following when I do `$this->Authentication->getIdentity()`: `Identity found in request does not implement Authentication\IdentityInterface` |
# |
Aug 12th 2019, 16:17 |
mikesmoniker |
Did `Response::send()`’s deprecation ever make it into any of the migrations guides? I’m 99% sure I can just delete this line, but I don’t have a covering test :S |
# |
Aug 12th 2019, 16:16 |
martin |
Or was it another upload plugin that I used as example hm |
# |
Aug 12th 2019, 16:16 |
martin |
I wanted it different |
# |
Aug 12th 2019, 16:15 |
martin |
I did only steal the idea from proffer I think, had to have something more :P |
# |
Aug 12th 2019, 15:47 |
admad |
speaking of dload counts my most dloaded plugin is made defunct with the new authentication lib |
# |
Aug 12th 2019, 15:46 |
admad |
definitely now my strong suite :slightly_smiling_face: |
# |
Aug 12th 2019, 15:46 |
neon1024 |
I can see you’re not in marketing ;) |
# |
Aug 12th 2019, 15:45 |
admad |
these install counts are quite misleading given use use of CIs |
# |
Aug 12th 2019, 15:45 |
neon1024 |
Phew! |
# |
Aug 12th 2019, 15:45 |
admad |
see no one nows :P |
# |
Aug 12th 2019, 15:45 |
neon1024 |
https://packagist.org/packages/davidyell/proffer |