This file contains hidden or 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 | |
$qb = $em->createQueryBuilder(); | |
$qb->select('a') | |
->from('Entity\\Article', 'a') | |
->add('where', $qb->expr()->not($qb->expr()->eq('a.title', ':title'))) | |
->setParameter('title', 'NA') | |
; | |
$translationListener->setTranslatableLocale('es'); |
This file contains hidden or 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
// See comments below. | |
// This code sample and justification brought to you by | |
// Isaac Z. Schlueter, aka isaacs | |
// standard style | |
var a = "ape", | |
b = "bat", | |
c = "cat", | |
d = "dog", |
This file contains hidden or 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 | |
use Doctrine\Common\ClassLoader, | |
Doctrine\ORM\Configuration, | |
Doctrine\ORM\EntityManager, | |
Doctrine\Common\Cache\ArrayCache, | |
Doctrine\DBAL\Logging\EchoSqlLogger; | |
define('BASEPATH', __DIR__ . '/../system/'); | |
require_once __DIR__ . '/config/database.php'; |