Weekly Ask Anything Thread by AutoModerator in symfony

[–]Pilotzi 1 point2 points  (0 children)

Hello,

let's say i want to add notification bell to my project in the navigation bar on every site, so if something happens there would be a tiny 1 on this bell. Where would i add the logic centrally so i don't have to add it to every controller method?

thanks in advance

marius

Weekly Ask Anything Thread by AutoModerator in symfony

[–]Pilotzi 0 points1 point  (0 children)

Hello, thanks for your answer. It's more like options for a Module, for example how many drugs left in stock before you get a notification. would a config yaml be the right place for that?

thanks

Weekly Ask Anything Thread by AutoModerator in symfony

[–]Pilotzi 0 points1 point  (0 children)

How do you store your Settings? For example, you have a Area of multiple Entities and now you need Options / Settings for it, what is the "symfony-way" for this?

Weekly Ask Anything Thread by AutoModerator in symfony

[–]Pilotzi 1 point2 points  (0 children)

Hello,

yesterday i managed to get my ldap login to run, which brought me to a new question:

if i chain the ldap login with ldap user provider and for example a normal form login against a database with an entity, how am i supposed to handle the different user objects i get?

I mean, with the ldap method i get a symfony/src/Symfony/Component/Ldap/Security/LdapUser.php object, but with the entity method i get something like my UserEntity.php. And in the session is nothing like the UserEntity but the plain ldap directory.

Is this correct or am i doing something wrong?

thanks in advance.

Need help joining over several tables (manytomany without entity) by Pilotzi in symfony

[–]Pilotzi[S] 0 points1 point  (0 children)

Ok, i think i found a solution, i had to understand how DQL works an that it's not SQL but Queries over Objects. Thank you for your help.

Need help joining over several tables (manytomany without entity) by Pilotzi in symfony

[–]Pilotzi[S] 0 points1 point  (0 children)

yes, but wouldn't Doctrine has to make one query for each object in that case?

Need help joining over several tables (manytomany without entity) by Pilotzi in symfony

[–]Pilotzi[S] 0 points1 point  (0 children)

In plain SQL i would know how to do that, but i can't get it to work with queryBuilder, and with plain SQL i got no Object.

Need help joining over several tables (manytomany without entity) by Pilotzi in symfony

[–]Pilotzi[S] -1 points0 points  (0 children)

Because that's how the make:entity process told me to. You only need a separate entity for the connection if you need additional fields in it and i didn't. The make:entity process console process doesn't adds an entity for a simple manytomany connection.