Improve getBaseUrl for caching
change default state to null (no store executed)
Add storeOnetoMany with $vars properties