Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
// --- src/App/Bundle/Resources/config/doctrine/EmailTemplate.orm.xml --- // | |
// Email Template orm xml | |
<one-to-many field="attachments" target-entity="EmailTemplateAttachments" mapped-by="idEmailTemplate" orphan-removal="true"> | |
<cascade> | |
<cascade-persist/> | |
</cascade> | |
<join-columns> | |
<join-column name="id" referenced-column-name="id_email_template"/> | |
</join-columns> | |
<gedmo:versioned/> |
.row { | |
display: table-row; | |
} | |
.col { | |
display: table-cell; | |
/*border:solid 1px red; // display border */ | |
} |
protected function configureDatagridFilters(DatagridMapper $datagridMapper) | |
{ | |
$datagridMapper | |
... | |
->add('createdAt', 'doctrine_orm_datetime_range', array(), | |
'sonata_type_date_range', | |
array( | |
'required' => false, | |
'widget' => 'single_text', | |
'attr' => array( |
I'm using MySql v 5.7.9. After googling, found some interesting article.
Go through SQL Client, then paste some code SELECT @@sql_mode;
. And taraaa~ it shows me this result : ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
.
Just set sql_mode to ''
with this command SET sql_mode = '';
OR SET GLOBAL sql_mode = '';
Hope it'll helps. =D
Good luck.
# I'm running this configuration host on Mac Osx. | |
# Not testing this configuration on Linux Host yet. | |
<VirtualHost *:80> | |
DocumentRoot "/path/to/yii/frontend/web" | |
ServerName pos-ebc.frontend.dev | |
Alias "/new_path" "/path/to/yii/new_path" | |
<Directory "/path/to/yii/frontend/web"> | |
AllowOverride All | |
Require all granted |
cp /etc/apt/sources.list /etc/apt/sources.list.bak
vi /etc/apt/sources.list
deb ftp://ftp.itb.ac.id/pub/ubuntu xenial main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu xenial-updates main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu xenial-security main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu xenial-backports main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu xenial-proposed main restricted universe multiverse
" Don't try to be vi compatible | |
set nocompatible | |
" Helps force plugins to load correctly when it is turned back on below | |
filetype off | |
" TODO: Load plugins here (pathogen or vundle) | |
" Turn on syntax highlighting | |
syntax on |
let findMissing = (list: Array<number>): number => { | |
// tentukan nilai terkecil dari bilangan positive int/number | |
let res = 1 | |
// tentukan nilai terbesar dari array | |
let max = Math.max.apply(Math, list); | |
// eliminasi bilangan negative dan 0 | |
let filteredList = list.filter(l => l > 0) | |
// cari bilangan dengan nilai terkecil (res) hingga terbesar (max) yang tidak termasuk dalam array inputan, |