src/Graviton/SchemaBundle/Model/SchemaModel.php
public function manyPropertyModelForTarget($mapping)
    {
        // @todo refactor to get rid of container dependency (maybe remove from here)
        list($app, $bundle, , $document) = explode('\\', $mapping);
        $app = strtolower($app);
        $bundle = strtolower(substr($bundle, 0, -6));
        $document = strtolower($document);
        $propertyService = implode('.', array($app, $bundle, 'model', $document));
        $propertyModel = $this->container->get($propertyService);

        return $propertyModel;
    }
public function manyPropertyModelForTarget($mapping)
    {
        // @todo refactor to get rid of container dependency (maybe remove from here)
        list($app, $bundle, , $document) = explode('\\', $mapping);
        $app = strtolower($app);
        $bundle = strtolower(substr($bundle, 0, -6));
        $document = strtolower($document);
        $propertyService = implode('.', array($app, $bundle, 'model', $document));
        $propertyModel = $this->container->get($propertyService);

        return $propertyModel;
    }
public function manyPropertyModelForTarget ( $ mapping ) { // @todo refactor to get rid of container dependency (maybe remove from here) list ( $ app , $ bundle , , $ document ) = explode ( '\\' , $ mapping ) ; $ app = strtolower ( $ app ) ; $ bundle = strtolower ( substr ( $ bundle , 0 , - 6 ) ) ; $ document = strtolower ( $ document ) ; $ propertyService = implode ( '.' , array ( $ app , $ bundle , 'model' , $ document ) ) ; $ propertyModel = $ this -> container -> get ( $ propertyService ) ; return $ propertyModel ; }
get property model for embedded field

@param string $mapping name of mapping class

@return $this
get property model for embedded field