Added assert in function on DaoProject.php file