Commons # sql entity repository, insert or update record if it has id set already

git-svn-id: http://source/svn/php_commons/branches/php_commons-4-github@2196 e588dd84-e1f6-4f18-b586-b92c208bf0ea
Merge branch 'master' of ../php_commons-4-github