add entity defenitoin to config
add adapter for pagerfanta