Found a solution
http://pastie.org/481635
http://pastie.org/481633
Setup autoloader and plugin path in application/configs/application.ini:
autoloadernamespaces.0 = "Doctrine"
pluginpaths.ZendX_Doctrine_Application_Resource= "ZendX/Doctrine/Application/Resource"
Add paths to models and generated models in public/index.php
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
realpath(APPLICATION_PATH . '/models'),
realpath(APPLICATION_PATH . '/models/generated'),
get_include_path(),
)));
Save http://pastie.org/481633 to library/ZendX/Resource/Doctrine.php