Code Style:
cmd /c phpmd src/ text codesize
cmd /c phpcs --encoding=utf-8 --extensions=php --standard=psr2 src/ -p
cmd /c php-cs-fixer fix "%cd%/src/" --level=psr2 --fixers=short_array_syntax,psr0,encoding,short_tag,braces,elseif,eof_ending,function_call_space,function_declaration,indentation,line_after_namespace,linefeed,lowercase_constants,lowercase_keywords,method_argument_space,multiple_use,parenthesis,php_closing_tag,trailing_spaces,visibility,-ordered_use,-single_line_after_imports
Dump-Installer
cmd /c app oro:migration:dump --migration-version=V1_0 --bundle AkumaAcademicBundle > src/Akuma/Bundle/AcademicBundle/Migrations/Schema/AkumaAcademicBundleInstaller.php
cmd /c php-cs-fixer fix "%cd%/src/Akuma/Bundle/AcademicBundle/Migrations/Schema/AkumaAcademicBundleInstaller.php" --level=psr2
Run Cron
cmd /c app oro:cron --env=dev && pause
CLank
cmd /c app clank:server --env=dev && pause
Clean Reinstall
cmd /c app oro:install --force --drop-database --application-url='http://academic.cw471.es/' --organization-name=ORO --user-name=admin --user-email=admin@example.com --user-firstname=INRI --user-lastname=SakiZ --user-password=admin --sample-data=y --env=dev
Reinstall Test Environment
cmd /c app oro:install --force --drop-database --application-url='http://academic.cw471.es/' --organization-name=ORO --user-name=admin --user-email=admin@example.com --user-firstname=INRI --user-lastname=SakiZ --user-password=admin --sample-data=y --env=test
cmd /c app doctrine:fixture:load --env=test --append --fixtures vendor/oro/platform/src/Oro/Bundle/TestFrameworkBundle/Fixtures
cmd /c phpunit -c .\phpunit.xml src\Akuma\Bundle\AcademicBundle\Tests\Functional
app .cmd
@ECHO OFF
php "%~dp1app/console" %*
вторник, 12 апреля 2016 г.
вторник, 5 апреля 2016 г.
OroSearchBundle: Quick Tests
$string = 'Admi';
/** @var $resultProvider ResultStatisticsProvider */
$resultProvider = $this->get('oro_search.provider.result_statistics_provider');
var_dump($groupedResults = $resultProvider->getGroupedResults($string));
die();
/** @var $resultProvider ResultStatisticsProvider */
$resultProvider = $this->get('oro_search.provider.result_statistics_provider');
var_dump($groupedResults = $resultProvider->getGroupedResults($string));
die();
OroDatagridBundle: OPTIONS
options:
entity_pagination: true
toolbarOptions:
hide: true
pageSize:
items: [10]
# default_per_page: 10
routerEnabled: false
entityHint -- ??
entity_pagination -- ??
toolbarOptions -- used to configure toolbar
hide -- default "false", visibility state of toolbar
pageSize -- options to configure items per page
default_per_page -- items per page
items -- count of items to display, array must be equal to "default_per_page"
routerEnabled -- ??
entity_pagination: true
toolbarOptions:
hide: true
pageSize:
items: [10]
# default_per_page: 10
routerEnabled: false
entityHint -- ??
entity_pagination -- ??
toolbarOptions -- used to configure toolbar
hide -- default "false", visibility state of toolbar
pageSize -- options to configure items per page
default_per_page -- items per page
items -- count of items to display, array must be equal to "default_per_page"
routerEnabled -- ??
понедельник, 4 апреля 2016 г.
ORO-Platform: WorkFlowBundle + DataGridBundle : Workflow Step
If you'd like to hide from "DataGrids" "WorkFlow Step" column by default, then add to entity confing
/** | |
* @ORM\Entity() | |
* @ORM\Table( | |
* name="academic_issues" | |
* ) | |
* @Config( | |
* defaultValues={ | |
* "workflow"={ | |
* "show_step_in_grid"=false | |
* } | |
* } | |
* ) | |
) | |
*/ |
And never use in your "DataGrid" definitions any following columns:
- "workflowStep"
- "workflowStepLabel"
- "step"
- "stepLabel"
ORO-Platform: Datagrid : Default Frontend Types
ORO Platform default frontend_type
protected $typeToFrontendTypeMap = [ | |
'integer' => Property::TYPE_INTEGER, | |
'smallint' => Property::TYPE_INTEGER, | |
'bigint' => Property::TYPE_INTEGER, | |
'decimal' => Property::TYPE_DECIMAL, | |
'float' => Property::TYPE_DECIMAL, | |
'boolean' => Property::TYPE_BOOLEAN, | |
'date' => Property::TYPE_DATE, | |
'datetime' => Property::TYPE_DATETIME, | |
'time' => Property::TYPE_TIME, | |
'money' => Property::TYPE_CURRENCY, | |
'percent' => Property::TYPE_PERCENT, | |
'simple_array' => Property::TYPE_SIMPLE_ARRAY, | |
'array' => Property::TYPE_ARRAY, | |
'json_array' => Property::TYPE_ARRAY, | |
'row_array' => Property::TYPE_ROW_ARRAY, | |
]; |
Подписаться на:
Сообщения (Atom)