RSS Feed/News Avoiding having to do foreach with finder?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
23,674
Points
823

Reputation:

I just converted a query over to finder and the query works all but one thing, it puts the indexed ID as the array key rather than assigning these as 0+

so I would expect a results of

Code:

$finder->0>whatever

instead what it appears to do is us the ID

Code:

Code:
$finder->79->whatever
$finder->14->whatever

that works well if I am just going to loop through those results, however in my results for this I am looking at specific key values which would look something like

Code:

...

Read more

Continue reading...
 
Status
Not open for further replies.
Top