shafiq.rst khan

  • Registered on: 2012-09-10
  • Last connection: 2013-09-30

Activity

Reported issues: 0

2013-09-30

03:42 AM PHP ActiveRecord General: RE: has_many with sub query conditions
Thanks Bill Zhao,
I know this process. and currently using same But what i am looking is same functionality like r...

2013-09-25

07:39 AM PHP ActiveRecord General: has_many with sub query conditions
Hi
What i need in has many is subquery like
static $has_many = array(
array('userpost', array('c...

2013-07-16

04:29 AM PHP ActiveRecord Help: RE: How to show the AVG() result of the query.
use foreach or just
$price = Price::find(array('select' => 'avg(weight) as price'))->price;
12:55 AM PHP ActiveRecord Help: RE: How to show the AVG() result of the query.
$price = Price::find('all', array('select' => 'avg(weight) as price'))->price;

2013-02-08

02:19 AM PHP ActiveRecord General: RE: Cascade the include
Oh Thats very nice . :-)
Thanks buddy its very nice.
01:53 AM PHP ActiveRecord General: RE: Cascade the include
Oh Finally figure it out
Section::find('all',array('include'=>array('categories')))
Its take there table name whil...
12:14 AM PHP ActiveRecord General: RE: Cascade the include
Yes Thats the typo mistake Its the categroy.
I used your answer but its still giving error
'Relationship named corp...

2013-02-07

07:00 AM PHP ActiveRecord General: RE: RE: Cascade the include
I have three tables as show above
and
In Advertisment model i used
static $belongs_to = array(array('categarogy'...

2013-01-29

02:08 AM PHP ActiveRecord Help: RE: $belongs_to relationship from existing SQL structure, custom column & class names
name the tables as users and topics
user foreign key as user_id
In topic model
static $belongs_to = array(
...
01:17 AM PHP ActiveRecord General: Cascade the include
Hi all,
I am new to spark and I need your help
I have following three tables
Advertisements-> id title categarog...

Also available in: Atom