composer require symfony/orm-pack
Using version ^1.0 for symfony/orm-pack
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
- Installing zendframework/zend-eventmanager (3.2.1): Downloading (connecting.Downloading (100%)
- Installing zendframework/zend-code (3.3.1): Downloading (100%)
- Installing ocramius/proxy-manager (2.2.2): Downloading (100%)
- Installing doctrine/migrations (2.1.1): Downloading (100%)
- Installing doctrine/doctrine-migrations-bundle (v2.0.0): Downloading (connecDownloading (100%)
- Installing symfony/orm-pack (v1.0.6): Downloading (100%)
zendframework/zend-eventmanager suggests installing container-interop/container-interop (^1.1.0, to use the lazy listeners feature)
zendframework/zend-eventmanager suggests installing zendframework/zend-stdlib (^2.7.3 || ^3.0, to use the FilterChain feature)
zendframework/zend-code suggests installing zendframework/zend-stdlib (Zend\Stdlib component)
ocramius/proxy-manager suggests installing ocramius/generated-hydrator (To have very fast object to array to object conversion for ghost objects)
ocramius/proxy-manager suggests installing zendframework/zend-xmlrpc (To have the XmlRpc adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-json (To have the JsonRpc adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-soap (To have the Soap adapter (Remote Object feature))
Package symfony/assetic-bundle is abandoned, you should avoid using it. Use symfony/webpack-encore-pack instead.
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
> php bin/console assetic:dump .
PHP Fatal error: Uncaught SpoonDatabaseException: A database connection could not be established. in /opt/lampp/htdocs/atrib/vendor/spoon/library/spoon/database/database.php:178
Stack trace:
#0 /opt/lampp/htdocs/atrib/vendor/spoon/library/spoon/database/database.php(264): SpoonDatabase->connect()
#1 /opt/lampp/htdocs/atrib/var/cache/dev/ContainerIp3hdlx/appDevDebugProjectContainer.php(842): SpoonDatabase->execute('SET CHARACTER S...', Array)
#2 /opt/lampp/htdocs/atrib/var/cache/dev/ContainerIp3hdlx/appDevDebugProjectContainer.php(1008): ContainerIp3hdlx\appDevDebugProjectContainer->getDatabaseService()
#3 /opt/lampp/htdocs/atrib/var/cache/dev/ContainerIp3hdlx/appDevDebugProjectContainer.php(1068): ContainerIp3hdlx\appDevDebugProjectContainer->getFork_SettingsService()
#4 /opt/lampp/htdocs/atrib/var/cache/dev/ContainerIp3hdlx/appDevDebugProjectContainer.php(1816): ContainerIp3hdlx\appDevDebugProjectContainer->getMediaLibrary_Manager_FileService()
#5 /opt/lampp/htdocs/atrib/var/cache/dev/ContainerIp3hdlx/appDevDebugProjectConta in /opt/lampp/htdocs/atrib/vendor/spoon/library/spoon/database/database.php on line 178
Script php bin/console assetic:dump . handling the post-update-cmd event returned with error code 255
$arSelect = Array("ID", "NAME", "PROPERTY_c_serv", "PROPERTY_P_CAT_VALUE", "PROPERTY_P_CAT.NAME");
Конечно не тот, который я ожидал, но все же лучше, чем говорить иди сначала по наступай на грабли, а потом приходи к решению с помощью паттернов.
По крайне мере Ваш совет дает ответ типо такого: пару десятков раз ошибешься с паттернами поймешь какой тебе лучше подойдет.
- так и закаляется характер.