Removes PHP notice when generating models