If you try to
git push -u origin feature/branch_name
and you get this error “error: src refspec feature/branch_name does not match any”, it means that your local branch are not named correctly. It should be named
as well, not just branch_name. Do a “git branch” to confirm yourself.
I think https://cacoo.com/ is pretty cool. what a gem. check it out.
we can use the in build ftp daemon To load: To unload:
Sometimes things go wrong during vagrant setup especially if have set it up already. You might get errors like “Authentication Failure” during “vagrant up” command. It is troublesome to get into the VM if there is no ssh key. Type in vagrant ssh-config To see whats happening. make sure u have ssh keys already. then … Continue reading
Converting from different date format can be challenging. All the php and mysql date functions can be confusing. Just store the date as yearmmdd format, eg 20160220 means year 2016, 02 month and 20 day. This format works well with strtotime function. As per unix timestamp, you can also use basic arithmetic to compare the … Continue reading
owning and inverse side can be confusing. Then there is uni and bi directional relationships. For example: These are some key rules: * The owning side has to use the inversedBy attribute of the OneToOne, ManyToOne, or ManyToMany mapping declaration. The inversedBy attribute contains the name of the association-field on the inverse-side. * The inverse … Continue reading
if you are extending an entity, most of the time, you can ignore the by_reference field option. This is because it is set to true by default and its usually what you want. for example This form field uses the variable “owner” as defined in the user class. it will call setOwner in the user … Continue reading
if you accidentally delete the bootstrap cache ./vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php