src/CRUDlex/Service.php
protected function initChildren()
    {
        foreach ($this->datas as $name => $data) {
            $fields = $data->getDefinition()->getFieldNames();
            foreach ($fields as $field) {
                if ($data->getDefinition()->getType($field) == 'reference') {
                    $this->datas[$data->getDefinition()->getSubTypeField($field, 'reference', 'entity')]->getDefinition()->addChild($data->getDefinition()->getTable(), $field, $name);
                }
            }
        }
    }
protected function initChildren()
    {
        foreach ($this->datas as $name => $data) {
            $fields = $data->getDefinition()->getFieldNames();
            foreach ($fields as $field) {
                if ($data->getDefinition()->getType($field) == 'reference') {
                    $this->datas[$data->getDefinition()->getSubTypeField($field, 'reference', 'entity')]->getDefinition()->addChild($data->getDefinition()->getTable(), $field, $name);
                }
            }
        }
    }
protected function initChildren ( ) { foreach ( $ this -> datas as $ name => $ data ) { $ fields = $ data -> getDefinition ( ) -> getFieldNames ( ) ; foreach ( $ fields as $ field ) { if ( $ data -> getDefinition ( ) -> getType ( $ field ) == 'reference' ) { $ this -> datas [ $ data -> getDefinition ( ) -> getSubTypeField ( $ field , 'reference' , 'entity' ) ] -> getDefinition ( ) -> addChild ( $ data -> getDefinition ( ) -> getTable ( ) , $ field , $ name ) ; } } } }
Initializes the children of the data entries.
Initializes the children of the data entries .