public static function edit(Entry $entry)
    {
        // Update modification date and modification author.
        Symphony::Database()->update(
            array(
                'modification_author_id' => $entry->get('modification_author_id'),
                'modification_date' => $entry->get('modification_date'),
                'modification_date_gmt' => $entry->get('modification_date_gmt')
            ),
            'tbl_entries',
            sprintf(' `id` = %d', (int)$entry->get('id'))
        );

        // Iterate over all data for this entry
        foreach ($entry->getData() as $field_id => $field) {
            // Write data
            static::saveFieldData($entry->get('id'), $field_id, $field);
        }

        return true;
    }
public static function edit(Entry $entry)
    {
        // Update modification date and modification author.
        Symphony::Database()->update(
            array(
                'modification_author_id' => $entry->get('modification_author_id'),
                'modification_date' => $entry->get('modification_date'),
                'modification_date_gmt' => $entry->get('modification_date_gmt')
            ),
            'tbl_entries',
            sprintf(' `id` = %d', (int)$entry->get('id'))
        );

        // Iterate over all data for this entry
        foreach ($entry->getData() as $field_id => $field) {
            // Write data
            static::saveFieldData($entry->get('id'), $field_id, $field);
        }

        return true;
    }
public static function edit ( Entry $ entry ) { // Update modification date and modification author. Symphony :: Database ( ) -> update ( array ( 'modification_author_id' => $ entry -> get ( 'modification_author_id' ) , 'modification_date' => $ entry -> get ( 'modification_date' ) , 'modification_date_gmt' => $ entry -> get ( 'modification_date_gmt' ) ) , 'tbl_entries' , sprintf ( ' `id` = %d' , ( int ) $ entry -> get ( 'id' ) ) ) ; // Iterate over all data for this entry foreach ( $ entry -> getData ( ) as $ field_id => $ field ) { // Write data static :: saveFieldData ( $ entry -> get ( 'id' ) , $ field_id , $ field ) ; } return true ; }
Update an existing Entry object given an Entry object

@see EntryManager::saveFieldData()
@param Entry $entry
An Entry object
@throws DatabaseException
@return boolean
Update an existing Entry object given an Entry object