cron:update-ownership
Recalculates which users and groups have search access to an element, after an OWNS, HAS_SEARCH_ACCESS or IS_IN_GROUP relation affecting it changes (see the access model ).
Takes no arguments or options. A relation change queues its affected elements internally, and this command drains that queue, recalculating each element and, if its access actually changed, queuing its children as well - so search access can lag behind the graph by a short delay, bounded by how often this command runs.
Every API instance already schedules this on its own interval (see Background ), so it does not need to be invoked manually.
Help
php bin/console cron:update-ownership --helpDescription: Recalculates search access ownership of elements affected by relation changes. Usage: cron:update-ownership Options: -h, --help Display help for the given command. When no command is given display help for the list command --silent Do not output any message -q, --quiet Only errors are displayed. All other output is suppressed -V, --version Display this application version --ansi|--no-ansi Force (or disable --no-ansi) ANSI output -n, --no-interaction Do not ask any interactive question -e, --env=ENV The Environment name. [default: "prod"] --no-debug Switch off debug mode. --profile Enables profiling (requires debug). -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Example
php bin/console cron:update-ownership▄ ▄▀ ▀▄ Ember Nexus API ▀█▀ v0.3.0, production mode Cron Recalculating ownership search access... ▶ Processed 0 queue message(s), updated search access of 0 element(s).