Welcome Guest, Not a member yet? Register   Sign In
Validation in the Model not working
#3

(01-17-2021, 08:55 AM)Corsari Wrote: Hello friends

I have found the solution

The problem for me was to make the right use of alias for columns

Easy task for experienced coders ... but I'm not and experienced coder so ..

For others newbies I write what I have found as solution

PHP Code:
$data $ticketModel ->select('ticket.id, ticket.name as t_name, ticket.date, dept.name')
                     ->where('ticket.dept_id''52')
                     ->join('dept''ticket.dept_id = dept.id')
                     ->orderBy('ticket.date''desc')
                     ->findAll();

dd($data); 

kind regards
Hi,
Not sure how this applies to my specific question.
Should I alias the columns in the
Code:
getAllWalks()
method in my Model?
Thanks
Reply


Messages In This Thread
RE: Validation in the Model not working - by josh2112o - 01-17-2021, 10:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB