avenirer / CodeIgniter-MY_Model

Base model (MY_Model) for the Codeigniter framework.
324 stars 203 forks source link

How to add limit in hasMany relationship? #284

Open prashant-pokhriyal opened 5 years ago

prashant-pokhriyal commented 5 years ago

I've to tables

A single member may have many pictures. While retrieving I want to get only one image of the member using hasMany relationship functionality. Is there any way I can pass limit in with method?