Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View onurkayaio's full-sized avatar
😒
boring af

onur kaya. onurkayaio

😒
boring af
  • WEG-Technology
  • Istanbul
View GitHub Profile
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteBase /
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/index.php [QSA,L]
</IfModule>
git branch --merged | egrep -v "(^\*|master)" | xargs git branch -d
@onurkayaio
onurkayaio / join-last-record-with-querybuilder.php
Created July 3, 2020 11:29
Selecting the last record in a one-to-many relationship with DQL (Doctrine Query Language).
<?php
/**
* This example demonstrates how to join the last record in a
* one-to-many relationship using the Doctrine QueryBuilder.
*
* @author Ricard Derheim
*/
use Doctrine\ORM\Query\Expr;