Fix #2244
Merge pull request #2258 from dreamsxin/2244

Fix #2244 add judge conditions in `Phalcon\Mvc\Model\Manager::getRelationRecords`