Re: LEFT join est-ce possible?

Matthieu Marcillaud <[email protected]>
Newsgroups gmane.comp.web.spip.devel
Message-ID <[email protected]>
Le 27/04/2020 à 10:21, Alexis a écrit :

> J'ai trouvé dans composer.php
> 
> @param array $from_type qui semblerait permettre de demander une 
> jointure d'un type spécifique mais je n'ai pas trouvé comment passer ce 
> paramètre.
> 
> Y'a-t il une syntaxe particulière de la définition de la boucle pour 
> spécifier ce paramètre?


Nope, pas moyen pour le moment.
Cf le succinct https://core.spip.net/issues/3711

Il te faut actuellement créer un critère spécifique pour définir ce type 
de jointure. Quelques exemples :

- https://git.spip.net/spip/forum/src/branch/master/public/forum.php#L94
- 
https://git.spip.net/spip/organiseur/src/branch/master/organiseur_fonctions.php#L29
- 
https://git.spip.net/spip-contrib-extensions/contacts_et_organisations/src/branch/master/contacts_fonctions.php#L139
- 
https://git.spip.net/spip-contrib-extensions/gis/src/branch/master/gis_fonctions.php#L258

Hope it helps,

MM.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.