PHP code example of conserto / pomm-bundle

1. Go to this page and download the library: Download conserto/pomm-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

conserto / pomm-bundle example snippets


    function myAction($name)
    {
        $students = $this->get('pomm')['my_db2']
            ->getModel('\AppBundle\Model\MyDb1\PublicSchema\StudentModel')
            ->findWhere('name = $*', [$name])
            ;

        …

public function getAction(#[Entity('my_db2')] Student $student)

public function getAction(#[Entity(modelClass: 'StudentModel')] Student $student)