private function initializeFieldDescriptors($locale)
    {
        $this->initializeOrderFieldDescriptors($locale);

        $this->fieldDescriptors['id'] = new DoctrineFieldDescriptor(
            'id',
            'id',
            self::$shippingEntityName,
            'public.id',
            array(),
            true
        );
        $this->fieldDescriptors['number'] = new DoctrineFieldDescriptor(
            'number',
            'number',
            self::$shippingEntityName,
            'salesshipping.shippings.number',
            array(),
            false,
            true
        );

        $contactJoin = array(
            self::$orderAddressEntityName => new DoctrineJoinDescriptor(
                    self::$orderAddressEntityName,
                    self::$shippingEntityName . '.deliveryAddress'
                )
        );

        $this->fieldDescriptors['account'] = new DoctrineConcatenationFieldDescriptor(
            array(
                new DoctrineFieldDescriptor(
                    'accountName',
                    'account',
                    self::$orderAddressEntityName,
                    'contact.contacts.contact',
                    $contactJoin
                )
            ),
            'account',
            'salescore.account',
            ' ',
            false,
            false,
            '',
            '',
            '160px'
        );

        $this->fieldDescriptors['contact'] = new DoctrineConcatenationFieldDescriptor(
            array(
                new DoctrineFieldDescriptor(
                    'firstName',
                    'contact',
                    self::$orderAddressEntityName,
                    'contact.contacts.contact',
                    $contactJoin
                ),
                new DoctrineFieldDescriptor(
                    'lastName',
                    'contact',
                    self::$orderAddressEntityName,
                    'contact.contacts.contact',
                    $contactJoin
                )
            ),
            'contact',
            'salescore.contact',
            ' ',
            false,
            false,
            '',
            '',
            '160px',
            false
        );

        $this->fieldDescriptors['status'] = new DoctrineFieldDescriptor(
            'name',
            'status',
            self::$shippingStatusTranslationEntityName,
            'salescore.status',
            array(
                self::$shippingStatusEntityName => new DoctrineJoinDescriptor(
                        self::$shippingStatusEntityName,
                        self::$shippingEntityName . '.status'
                    ),
                self::$shippingStatusTranslationEntityName => new DoctrineJoinDescriptor(
                        self::$shippingStatusTranslationEntityName,
                        self::$shippingStatusEntityName . '.translations',
                        self::$shippingStatusTranslationEntityName . ".locale = '" . $locale . "'"
                    )
            )
        );

        $this->fieldDescriptors['orderNumber'] = $this->orderFieldDescriptors['orderNumber'];
    }
private function initializeFieldDescriptors($locale)
    {
        $this->initializeOrderFieldDescriptors($locale);

        $this->fieldDescriptors['id'] = new DoctrineFieldDescriptor(
            'id',
            'id',
            self::$shippingEntityName,
            'public.id',
            array(),
            true
        );
        $this->fieldDescriptors['number'] = new DoctrineFieldDescriptor(
            'number',
            'number',
            self::$shippingEntityName,
            'salesshipping.shippings.number',
            array(),
            false,
            true
        );

        $contactJoin = array(
            self::$orderAddressEntityName => new DoctrineJoinDescriptor(
                    self::$orderAddressEntityName,
                    self::$shippingEntityName . '.deliveryAddress'
                )
        );

        $this->fieldDescriptors['account'] = new DoctrineConcatenationFieldDescriptor(
            array(
                new DoctrineFieldDescriptor(
                    'accountName',
                    'account',
                    self::$orderAddressEntityName,
                    'contact.contacts.contact',
                    $contactJoin
                )
            ),
            'account',
            'salescore.account',
            ' ',
            false,
            false,
            '',
            '',
            '160px'
        );

        $this->fieldDescriptors['contact'] = new DoctrineConcatenationFieldDescriptor(
            array(
                new DoctrineFieldDescriptor(
                    'firstName',
                    'contact',
                    self::$orderAddressEntityName,
                    'contact.contacts.contact',
                    $contactJoin
                ),
                new DoctrineFieldDescriptor(
                    'lastName',
                    'contact',
                    self::$orderAddressEntityName,
                    'contact.contacts.contact',
                    $contactJoin
                )
            ),
            'contact',
            'salescore.contact',
            ' ',
            false,
            false,
            '',
            '',
            '160px',
            false
        );

        $this->fieldDescriptors['status'] = new DoctrineFieldDescriptor(
            'name',
            'status',
            self::$shippingStatusTranslationEntityName,
            'salescore.status',
            array(
                self::$shippingStatusEntityName => new DoctrineJoinDescriptor(
                        self::$shippingStatusEntityName,
                        self::$shippingEntityName . '.status'
                    ),
                self::$shippingStatusTranslationEntityName => new DoctrineJoinDescriptor(
                        self::$shippingStatusTranslationEntityName,
                        self::$shippingStatusEntityName . '.translations',
                        self::$shippingStatusTranslationEntityName . ".locale = '" . $locale . "'"
                    )
            )
        );

        $this->fieldDescriptors['orderNumber'] = $this->orderFieldDescriptors['orderNumber'];
    }
private function initializeFieldDescriptors ( $ locale ) { $ this -> initializeOrderFieldDescriptors ( $ locale ) ; $ this -> fieldDescriptors [ 'id' ] = new DoctrineFieldDescriptor ( 'id' , 'id' , self :: $ shippingEntityName , 'public.id' , array ( ) , true ) ; $ this -> fieldDescriptors [ 'number' ] = new DoctrineFieldDescriptor ( 'number' , 'number' , self :: $ shippingEntityName , 'salesshipping.shippings.number' , array ( ) , false , true ) ; $ contactJoin = array ( self :: $ orderAddressEntityName => new DoctrineJoinDescriptor ( self :: $ orderAddressEntityName , self :: $ shippingEntityName . '.deliveryAddress' ) ) ; $ this -> fieldDescriptors [ 'account' ] = new DoctrineConcatenationFieldDescriptor ( array ( new DoctrineFieldDescriptor ( 'accountName' , 'account' , self :: $ orderAddressEntityName , 'contact.contacts.contact' , $ contactJoin ) ) , 'account' , 'salescore.account' , ' ' , false , false , '' , '' , '160px' ) ; $ this -> fieldDescriptors [ 'contact' ] = new DoctrineConcatenationFieldDescriptor ( array ( new DoctrineFieldDescriptor ( 'firstName' , 'contact' , self :: $ orderAddressEntityName , 'contact.contacts.contact' , $ contactJoin ) , new DoctrineFieldDescriptor ( 'lastName' , 'contact' , self :: $ orderAddressEntityName , 'contact.contacts.contact' , $ contactJoin ) ) , 'contact' , 'salescore.contact' , ' ' , false , false , '' , '' , '160px' , false ) ; $ this -> fieldDescriptors [ 'status' ] = new DoctrineFieldDescriptor ( 'name' , 'status' , self :: $ shippingStatusTranslationEntityName , 'salescore.status' , array ( self :: $ shippingStatusEntityName => new DoctrineJoinDescriptor ( self :: $ shippingStatusEntityName , self :: $ shippingEntityName . '.status' ) , self :: $ shippingStatusTranslationEntityName => new DoctrineJoinDescriptor ( self :: $ shippingStatusTranslationEntityName , self :: $ shippingStatusEntityName . '.translations' , self :: $ shippingStatusTranslationEntityName . ".locale = '" . $ locale . "'" ) ) ) ; $ this -> fieldDescriptors [ 'orderNumber' ] = $ this -> orderFieldDescriptors [ 'orderNumber' ] ; }
initializes field descriptors
initializes field descriptors