Fix issue https://github.com/jpfuentes2/php-activerecord/issues/381