Cannot use limit() in conjunction with with() on a one-to-many relationship

220 Views Asked by At

Anyone have idea how to use one to many relationship on propel ORM?

I'm running following query to retrieve posts and comments from DB.

$con = \Propel::getConnection('MYDB');
$query = Posts::create()
            ->filterByGroup(1)
            ->joinWith('Comments')
            ->paginate(1, 4, $con);
0

There are 0 best solutions below