/**
* @return array
*/
public function toArray(): array
{
return [
'id' => $this->customer->getId(),
'account' => [
'id' => $this->customer->getAccount()->getId(),
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Infrastructure\Repository; | |
use Application\Domain\Model\TransactionStatus; | |
use Application\Infrastructure\Component\DoctrineExtensions\Query\SortableNullsWalker; | |
use Doctrine\ORM\EntityRepository; | |
use Doctrine\ORM\Query; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Define your slack group | |
*/ | |
$slackGroup = ''; | |
/** | |
* Define your slack token | |
* @see https://api.slack.com/docs/oauth-test-tokens |
1 - Get older Firefox version (56)
2 - Install application
sudo dpkg -i firefox_56.0+build6-0ubuntu1_i386.deb
or
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo | |
{ | |
const BAR_ONE = 1; | |
const BAR_TWO = 2; | |
const BAR_THREE = 3; | |
const QUX_1 = 'one'; | |
const QUX_2 = 'two'; | |
const QUX_3 = 'three'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@test2:~# ifconfig eth1 | |
eth1 Link encap:Ethernet HWaddr 76:85:75:73:d4:31 | |
inet addr:10.132.95.40 Bcast:10.132.255.255 Mask:255.255.0.0 | |
inet6 addr: fe80::7485:75ff:fe73:d431/64 Scope:Link | |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
RX packets:63 errors:0 dropped:0 overruns:0 frame:0 | |
TX packets:68 errors:0 dropped:0 overruns:0 carrier:0 | |
collisions:0 txqueuelen:1000 | |
RX bytes:8841 (8.8 KB) TX bytes:7369 (7.3 KB) |
Hi guys,
I'm testing Schema from DBAL and I discovered this problem below:
<?php
require(__DIR__.'/vendor/autoload.php');
$schema = new \Doctrine\DBAL\Schema\Schema();
$products = $schema->createTable('products');
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE products ( | |
date_insert DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL COMMENT 'Insert date', | |
date_update DATETIME DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT 'Last change date' | |
) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
/* ... */ | |
} catch (MyException $_) { | |
header('Location: /error/'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.install form label { | |
text-align: right; | |
width: 320px !important; | |
} | |
.install form input { | |
width: 35% !important; | |
} | |
.install form .field { | |
text-align: left; | |
} |