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
| $students = $em->createQueryBuilder() | |
| ->select("concat(pr.name,' ',pr.surname as student_name")///THİS IS CONCAT | |
| ->from('CoreCorporateBundle:Classroom','cr') | |
| ->innerJoin('cr.classroom_members','crm') | |
| ->innerJoin('crm.profile','pr') | |
| ->where('cr.uuid =:uuid') | |
| ->andwhere('crm.type =:type') | |
| ->setParameter('uuid',$classroom_uuid) | |
| ->setParameter('type','ogrenci') | |
| ->getQuery() |
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
| $qb = $em->createQueryBuilder(); | |
| $qb->update('CoreCorporateBundle:ClassroomMember', 'crm'); | |
| $qb->set('crm.classroom','null'); | |
| $qb->where('crm.classroom =:classroom'); | |
| $qb->setParameter('classroom', $classroom); | |
| $qb->getQuery()->execute(); |
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
| $(".js-data-example-ajax").select2({ | |
| width:"off", | |
| placeholder: '{% trans from "content" %}content.select.placeholder{% endtrans %}', | |
| language: "{{ app.request.getLocale() }}", | |
| templateResult: function (data) { | |
| if (!data.element) { | |
| return data.text; | |
| } |
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
| select2.on('select2:select',function() { | |
| var id = $(this).find('option:selected').text().replace(/\s/g,'_'); | |
| $(this).closest('td').siblings('td').find('select.select2').children('option[id="' + id + '"]').attr('disabled', true); | |
| var selected_option = $(this).find('option:selected'); | |
| var selected_all_options = $(this).closest('td').siblings('td').find('select.select2').children('option:selected') | |
| selected_all_options.push(selected_option) |
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
| npm config set prefix /usr/local | |
| full : http://blog.webbb.be/command-not-found-node-npm/ |
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
| //Videoları telefonun video oynatıcısında oynatma (play all video with native phone videoplayer ) | |
| cordova plugin add https://github.com/raulduran/VideoPlayer.git | |
| https://github.com/raulduran/VideoPlayer | |
| bu plugin ileri geri durdur başlat özelliğğ var alaltakinden daha iyi.( start ,stop feature) this is best | |
| //Videoları telefonun video oynatıcısında oynatma (play all video with native phone videoplayer ) | |
| https://github.com/moust/cordova-plugin-videoplayer | |
| No option |
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
| //This line is orjinal line. | |
| //self.closeButton => close button (Done button) | |
| //flexibleSpaceButton => space between two buttons | |
| //self.backButton => back button left arrow | |
| //fixedSpaceButton => mini space | |
| //self.forwardButton => forward button right arrow | |
| [self.toolbar setItems:@[self.closeButton, flexibleSpaceButton, self.backButton, fixedSpaceButton, self.forwardButton]]; | |
| //For example if you change this line below,toolbar look like | ◄ ► |. Done button removed. | |
| [self.toolbar setItems:@[fixedSpaceButton, self.backButton, flexibleSpaceButton, self.forwardButton , fixedSpaceButton]]; |
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
| public function deleteDirectory($dir) { | |
| if (is_dir($dir)) { | |
| $objects = scandir($dir); | |
| foreach ($objects as $object) { | |
| if ($object != '.' && $object != '..') { | |
| (filetype($dir . '/' . $object) == 'dir') ? $this->deleteDirectory($dir . '/' . $object) : unlink($dir . '/' . $object); | |
| } | |
| } | |
| reset($objects); | |
| return rmdir($dir) ? true : false; |
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
| $request->isXmlHttpRequest(); |
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
| ### Profile entity | |
| class Profile{ | |
| ... (your entity codes) | |
| //ONE TO MANY RELATİONSHİP | |
| /** | |
| * @ORM\OneToMany(targetEntity="AppBundle\Entity\Graduate",mappedBy="profile",cascade={"all"}) | |
| */ | |
| private $graduates; | |