Mrngstar
Edit Table Action only populating fields of the first row
Everything works properly when I use
whereIn
instead of orWhereIn
.
select * from
plans where
id in (select
plan_id from
user_plans where
user_id = 20) and
is_private = 0 and
plans.
deleted_at is null order by
price asc
for above query, values of that specific rows are getting populating.
select * from
plans where (
id in (select
plan_id from
user_plans where
user_id = 20) or
is_private = 0) and
plans.
deleted_at is null order by
price asc
For this query, when I click on any row's Edit action,value of only first row are getting populated.4 replies