开发者

Kohana ORM limit column size

How can I limit the size of column value returned by ORM. I have a field having type long text. I 开发者_如何转开发want ORM only to fetch starting 100 value, how can I do that ?


Why not create a dummy field (like in your next question) with a shortened value? You can use Kohana's Text::limit_chars() or Text::limit_words() for it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜