- http://stackoverflow.com/questions/804115 (
rebasevsmerge). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebasevsmerge) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
resetvscheckoutvsrevert) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse) - http://stackoverflow.com/questions/292357 (
pullvsfetch) - http://stackoverflow.com/questions/39651 (
stashvsbranch) - http://stackoverflow.com/questions/8358035 (
resetvscheckoutvsrevert)
| // Version 1.3.0 | |
| // 27.11.2021 | |
| // | |
| // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: red; icon-glyph: notes-medical; | |
| // Mit Caching und Fallback | |
| const cacheMinutes = 60; // 60 min | |
| const today = new Date(); | |
| const neededTotalVaccinations = 83200000; |
| ; Preamble | |
| M420 S1 ; restore abl mesh | |
| M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration | |
| M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate | |
| M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration | |
| M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk | |
| M220 S100 ;Reset Feedrate | |
| M221 S100 ;Reset Flowrate | |
| ; Heat nozzle just enough to accurately home without drooping |
| #! /bin/bash | |
| # NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION | |
| # Developed for DSM 6 - 7.0.1. Not tested on other versions. | |
| # Steps to install | |
| # Save this script in one of your shares | |
| # Edit it according to your requirements | |
| # Backup /usr/syno/share/nginx/ as follows: | |
| # # cd /usr/syno/share/ | |
| # # tar cvf ~/nginx.tar nginx |
| <?php | |
| return Symfony\CS\Config\Config::create() | |
| ->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL) | |
| ->fixers([ | |
| 'short_array_syntax', | |
| 'ordered_use', | |
| ]) | |
| ; |
TLDR: The cascade={"remove"} is like a "software" onDelete="CASCADE", and will remove objects from the database only when an explicit call to $em->remove() occurs. Thus, it could result in more than one object being deleted. orphanRemoval can remove objects from the database even if there was no explicit call to ->remove().
I answered this question a few times to different people so I will try to sum things up in this Gist.
Let's take two entities A and B as an example. I will use a OneToOne relationship in this example but it works exactly the same with OneToMany relationships.
class A| parameters | |
| --level=psr2 --verbose fix $FileDir$/$FileName$ | |
| working directory | |
| $ProjectFileDir$ |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc| # | |
| # Working with branches | |
| # | |
| # Get the current branch name (not so useful in itself, but used in | |
| # other aliases) | |
| branch-name = "!git rev-parse --abbrev-ref HEAD" | |
| # Push the current branch to the remote "origin", and set it to track | |
| # the upstream branch | |
| publish = "!git push -u origin $(git branch-name)" |
| <?php | |
| namespace Dbu\UtilBundle\Command; | |
| use Symfony\Component\Console\Input\InputInterface; | |
| use Symfony\Component\Console\Output\OutputInterface; | |
| use Symfony\Component\Console\Input\InputOption; | |
| use Symfony\Component\Finder\Finder; | |
| use Symfony\Component\Translation\MessageCatalogue; | |
| use Symfony\Component\Translation\Loader\LoaderInterface; |