Remove executable bit on .php files
Use boolean constants since entity column is bool
Use DQL instead of (mysql specific) sql