@ php-activerecord: some bug fixed + toratan-script is more synced with toratan