Пример #1
0
 /**
  * @param string $property
  * @return string
  * @throws Exception
  */
 private function getSearchableProperty($property)
 {
     $property = Meta\Reflection::singularizeProperty($property);
     foreach ($this->meta->getIndexedProperties() as $p) {
         if (Meta\Reflection::singularizeProperty($p->getName()) == $property) {
             return $property;
         }
     }
     throw new Exception("Property {$property} is not indexed.");
 }