fixed bug with pagesize and page parameter
removed condition of user set pagesize=0
fixed and finalized the doctrine fuctions methodologies