Skip to content

Instantly share code, notes, and snippets.

View mvnp's full-sized avatar
🏠
Working from home

Marcos Pereira mvnp

🏠
Working from home
View GitHub Profile
@mvnp
mvnp / gist:7bc514243c2b9cc67cfa0d0bc0790895
Created July 28, 2020 15:51
doctrine_migrations.yaml
doctrine_migrations:
migrations_paths:
'DoctrineMigrations': '%kernel.project_dir%/src/Migrations'
marcos@linux:~/Documents/Fractal/Projetos/siga-api$ git commit -m "Modificando \App\Entity\Barragem.php"
[weather c796d9be] Modificando \App\Entity\Barragem.php
1 file changed, 2 insertions(+), 2 deletions(-)
marcos@linux:~/Documents/Fractal/Projetos/siga-api$ git push
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 4 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 451 bytes | 451.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0)
marcos@linux:~/Documents/Fractal/Projetos/siga-api$ ./git-siga.sh step-develop weather
On branch develop
Your branch is up to date with 'origin/develop'.
nothing to commit, working tree clean
Everything up-to-date
Already on 'develop'
Your branch is up to date with 'origin/develop'.
Already up to date.
Already up to date.
<?php
namespace DoctrineNaPratica\Model;
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
1) DoctrineNaPratica\Model\UserTest::testUser
Error: Call to undefined method Doctrine\Common\Collections\ArrayCollection::unwrap()
/home/marcos/Documents/Doctrine/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:784
/home/marcos/Documents/Doctrine/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:687
/home/marcos/Documents/Doctrine/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:404
/home/marcos/Documents/Doctrine/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:711
/home/marcos/Documents/Doctrine/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:297
/home/marcos/Documents/Doctrine/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:340
/home/marcos/Documents/Doctrine/tests/src/DoctrineNaPratica/Model/UserTest.php:23
Deprecation warning: Your package name mydoctrine-project is invalid, it should have a vendor name, a forward slash,
and a package name. The vendor and package name can be words separated by -, . or _. The complete name should match
"^[a-z0-9]([_.-]?[a-z0-9]+)*/[a-z0-9](([_.]?|-{0,2})[a-z0-9]+)*$". Make sure you fix this as Composer 2.0 will error.
doctrine/annotations 1.10.3 Docblock Annotations Parser
doctrine/cache 1.10.1 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers su...
doctrine/collections 1.6.5 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common v2.4.3 Common Library for Doctrine projects
doctrine/dbal v2.4.5 Database Abstraction Layer
doctrine/inflector 1.4.3 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper...
<?php
$string = 'gmtm xnvgtlml sgcfmz tmw hbvcst mqnj gxr ltrkckj hzbpvj pgnfkhmd tcmpwnk phvx zpsqdhx bcdzdtmm npfbwlt xlwqbj wndfhdf fqx qpnxnsqk lxrcmgjc xlthlfdl xtdql vtznwg jhwd svshbq fmx hvpcwl srxx rhgjql fgx tjlx xzvcgpr gtg zpv sdp cjngcfv kcjpxdv jkvtpjnk zcjmvrbh lsnn gmlpkw nnsvhtff vlwtdch psbqbl rbptvg vpxmvkv rdgwtmj hjn pgh qkm lqpkj qjgmtrqf cdzbbckk fbhsb rpkdph ldk jxhft hrw tcmrdn vwf jjtrk dcdz xmczpt mfvmrs qqbphnnc hcmfkv bwqvdbzx zlsg bvsbdl mjspk ckdndgv sknrzck qvgnhq tsh nltpbns dcpp sbhstq lbkmzbh jmlwkllv cltww nxkwldm bdwn zlzn vhd zkxh xqlxknx xvwh wxhz bldcwc fqt lfmf mqb plvxk nnxplxl ktbdqfd cpxm lprbg tbq tkmvq ggzgtcfv qggswmr nkz xzg gwnfl wrhs mkwj gpggn gchp pfhl cwzrchv qtmxd xzprwf msrwws bwvf xwzbfq srvk kfqrdc ftqwk msrgfhw fmwm wtfgd pbp clmqlfwh hzzjn rmgbz gjzvfhzg jqgshslr nkflqc bjp rsxfnflp cmwvqjld pqqflg xrzrn xqgdnpw cjfzscq dzndcbm gwzgt fzmlvg gcm dbvcsbcv hdcr njk mlwl xsjbjtzz svt lgc xntlpmr mrjnhmgf swntq tdd qcsfvx jgslgvdf krztn nggpm pjdjrpn zqgr
<style>
.esquerda {
width: 30px;
height: 30px;
float: left;
border:1px solid #000;
}
.direita {
width: 200px;
height: 30px;
<style>
.esquerda {
width: 30px;
height: 30px;
float: left;
border:1px solid #000;
}
.direita {
width: 200px;
height: 30px;