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 ProductAvailabilityRepository { | |
static function getItemIdFromProdAndRelay($productId, $relayId) | |
{ | |
$dbQuery = db_query(" | |
SELECT eck_product_availability.id AS id | |
FROM {eck_product_availability} eck_product_availability | |
LEFT JOIN {field_data_field_relay_ref} field_data_field_relay_ref | |
ON eck_product_availability.id = field_data_field_relay_ref.entity_id AND field_data_field_relay_ref.entity_type = 'product_availability' |
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 | |
/** | |
* @author Ali Tiane | |
* | |
*/ | |
// src/App/OneBundle/Model/EntityStamp.php | |
namespace App\OneBundle\Model; | |
use Doctrine\ORM\Mapping as ORM; |
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 | |
/*Controller/InvoiceController.php*/ | |
namespace Ruby\CheckbookBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
class InvoiceController extends Controller | |
{ | |
public function listAction($page) | |
{ |