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
/** | |
* @param string $blockSlug | |
* @return \Rocket\BraPrintBundle\Entity\CmsBlock | |
*/ | |
public function getBlock($blockSlug) { | |
$result = ''; | |
$repo = $this->getEntityManager()->getRepository('RocketBraPrintBundle:CmsBlock'); | |
$item = $repo->findOneBySlug($blockSlug); | |
if ($item instanceof CmsBlock) { |
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
/** | |
* @Route("/sandbox/insert-test") | |
* @Template() | |
*/ | |
public function insertTestAction() { | |
$em = $this->getDoctrine()->getEntityManager(); | |
$datetime = new \DateTime(); | |
$qtty = 4000; |
NewerOlder