added function save to EntityManagerInterface.php
completed function saveEntity