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
public function deleteFromDatatableAction($id) { | |
$em = $this->getDoctrine()->getManager(); | |
$entity = $em->getRepository('NomDuBundle:NomEntite')->find($id); | |
if (!$entity) { | |
throw $this->createNotFoundException('Unable to find Entity.'); | |
} | |
$em->remove($entity); | |
$em->flush(); |
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
/** | |
* @ORM\Column(type="string", length=255, nullable=true) | |
*/ | |
public $path; | |
public function getAbsolutePath() | |
{ | |
return null === $this->path | |
? null | |
: $this->getUploadRootDir().'/'.$this->path; |
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 AppBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Address | |
* | |
* @ORM\Table(name="address") |
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 CompetenceTransformer implements DataTransformerInterface { | |
/** | |
* @var ObjectManager | |
*/ | |
private $om; | |
/** |
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 UserBundle\Controller\Admin; | |
use Symfony\Component\DependencyInjection\ContainerAware; | |
use Symfony\Component\HttpFoundation\RedirectResponse; | |
use Symfony\Component\Security\Core\Exception\AccessDeniedException; | |
use FOS\UserBundle\Model\UserInterface; | |
use FOS\UserBundle\Controller\ProfileController as BaseController; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
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 AppBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; | |
use Symfony\Component\Validator\Constraints as Assert; | |
/** | |
* CandidatesLanguages |
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 AppBundle\Controller\Api; | |
header('Access-Control-Allow-Origin: *'); | |
use FOS\RestBundle\Controller\FOSRestController; | |
use FOS\RestBundle\Controller\Annotations as Rest; | |
use Nelmio\ApiDocBundle\Annotation\ApiDoc; | |
/** |
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 SSII | |
{ | |
public function doDevelopment() | |
{ | |
$apiManager = $this->get('ssi_api_manager'); | |
return $apiManager->develop(); | |
} | |
} |
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
{ | |
"company_registration":{ | |
"email":"baccouch7.taieb@gmail.com", | |
"username":"jjjjjj", | |
"plainPassword":{ | |
"first":"xxxxx", | |
"second":"xxxxx" | |
}, | |
"companyUser": { | |
"firstName": "Taieb", |
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
var FormValidation = function () { | |
// basic validation | |
var handleValidation1 = function () { | |
// for more info visit the official plugin documentation: | |
// http://docs.jquery.com/Plugins/Validation | |
var form1 = $('#frm_createAccount'); | |
form1.validate({ | |
errorElement: 'span', //default input error message container |
OlderNewer