Hi All,
Can you please explain main difference between findByAttributes() and findByAllAttributes().
with proper example…
when to use findByAttributes and when to use findByAllAttributes in code
i ve search about this but it cant be in proper way.
please let me know…
suggest solution for this…
Thanking you in Advance,
With Regards,
Janvi
Bizley
(Bizley)
September 4, 2014, 6:01am
2
Are you sure it’s not findAllByAttributes() ?
Examples for findByAttributes() you can find here: http://www.yiiframework.com/forum/index.php/topic/21178-findbyattributes-example/
The main difference between findByAttributes() and findAllByAttributes() is that first one finds a single active record and second one finds all active records that have the specified attribute values
Hi Bizley,
thanks,
yeah its Can you please explain main difference between findByAttributes() and findAllByAttributes().
its my mistake …
thanks…
Bizley
(Bizley)
September 4, 2014, 7:26am
4
I already did. Please take a look at the last sentence in my previous post.
Difference between findByAttributes() and findAllByAttributes() is that :
first one findByAttributes() finds a single active record, returning active record
second one findAllByAttributes() finds all active records that have the specified attribute values , returning array of active records
Hi Bizley,
Thanks once again…thanks for giving ur precious time.
With Regards,
Janvi