Note that there are some explanatory texts on larger screens.

plurals
  1. POYii dropDownList nested conditions (not nested dropDown)
    text
    copied!<p>in a dropdown I would like to find data in 2 levels. Maybe my logic is wrong, but as I remember I have done such things before, the only difference was that I got always 1 simple result back, but now, I should handle an array. Here's my code:</p> <pre><code> echo $form-&gt;dropDownList($model, 'szeriaGyartmanyId', GxHtml::listDataEx( SzeriaGyartmany::model()-&gt;findAllAttributes( null, true, 'rajz_osszetett_technologia_id IN (:rajz_osszetett_technologia_id) AND keszDb&lt;db', array( ':rajz_osszetett_technologia_id' =&gt; RajzOsszetettTechnologia::model()-&gt;findAllAttributes( null, true, 'osszetett_technologia_id = :osszetett_technologia_id', array( ':osszetett_technologia_id' =&gt; OsszetettTechnologia::model()-&gt;find("name='Horganyzás alatt'")-&gt;id ) )-&gt;id ) ) ), array('style' =&gt; 'width: auto', 'prompt' =&gt; '')); </code></pre> <p>the core gives back one single ID, it's no problem, but the second level gives back an array (or array of objects? I'm not sure). The point is, is it possible here somehow to implode resulting rajz_osszetett_technologia_ids, or do I have to do completely differently? I've tried to implode it right in place, but I got an error: Argument must be an array. So that's why I guess the result is an array of objects.</p> <p>Is it clear what I would like to achieve? For me it seems kinda obvious to do it somehow like this, but maybe my logic is completely wrong. Can somebody please point me to the right direction? Thanks a lot! BR c</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload