Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function getMappedSqlField()
 {
     $result = '';
     if ($this->getAttribute() == 'category_ids') {
         $result = parent::getMappedSqlField();
     } elseif (isset($this->joinedAttributes[$this->getAttribute()])) {
         $result = $this->joinedAttributes[$this->getAttribute()];
     } elseif ($this->getAttributeObject()->isStatic()) {
         $result = $this->getAttributeObject()->getAttributeCode();
     } elseif ($this->getValueParsed()) {
         $result = 'e.entity_id';
     }
     return $result;
 }
 public function testGetMappedSqlField()
 {
     $this->_condition->setAttribute('category_ids');
     $this->assertEquals('e.entity_id', $this->_condition->getMappedSqlField());
 }